Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/torchcachex/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ def _flush_segment(self) -> None:

# Create RecordBatch from arrays (not pydict, to handle pre-converted arrays)
record_batch = pa.RecordBatch.from_arrays(
list(arrays.values()),
schema=self.schema
list(arrays.values()), schema=self.schema
)

# 2. Write to temp Arrow file
Expand Down
2 changes: 1 addition & 1 deletion tests/test_recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_atomic_flush(self):
# Count entries in segments
segment_count = 0
for segment_file in segments_dir.glob("segment_*.arrow"):
with pa.memory_map(str(segment_file), 'r') as source:
with pa.memory_map(str(segment_file), "r") as source:
reader = pa.ipc.open_file(source)
table = reader.read_all()
segment_count += len(table)
Expand Down
Loading