Skip to content

Commit

Permalink
Use Path.open for parquet loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
takacsd committed Nov 22, 2023
1 parent d561d24 commit a48c9d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/loaders/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def iterload(self):
pq = vd.importExternal("pyarrow.parquet", "pyarrow")
from visidata.loaders.arrow import arrow_to_vdtype

self.tbl = pq.read_table(str(self.source))
with self.source.open('rb') as f:
self.tbl = pq.read_table(f)
self.columns = []
for colname, col in zip(self.tbl.column_names, self.tbl.columns):
c = ParquetColumn(colname, type=arrow_to_vdtype(col.type), source=col)
Expand Down

0 comments on commit a48c9d2

Please # to comment.