Skip to content

Commit

Permalink
if no keys set metadata to none
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Sep 12, 2023
1 parent 7dcf9ed commit f6c5853
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daft/table/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ def read_parquet_into_pyarrow(
multithreaded_io=multithreaded_io,
coerce_int96_timestamp_unit=coerce_int96_timestamp_unit._timeunit,
)
if len(metadata) == 0:
metadata = None
schema = pa.schema(fields, metadata=metadata)
columns = [pa.chunked_array(c) for c in columns] # type: ignore
return pa.table(columns, schema=schema)

0 comments on commit f6c5853

Please sign in to comment.