Skip to content

Commit

Permalink
Fix wrong argument order for from_arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Dec 14, 2020
1 parent f8ecdb5 commit 19a9ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/write_gcr_to_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _has_run_no_lock(self):
def _chunk_data_generator(cat, columns, native_filters=None):
columns = sorted(columns)
for data in cat.get_quantities(columns, native_filters=native_filters, return_iterator=True):
table = pa.Table.from_arrays(*zip(*[(col, pa.array(data[col])) for col in columns]))
table = pa.Table.from_arrays([pa.array(data[col]) for col in columns], columns)
del data
try:
cat.close_all_file_handles()
Expand Down

0 comments on commit 19a9ac0

Please sign in to comment.