Skip to content

Commit

Permalink
write with non compliant types
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Nov 4, 2023
1 parent e70770b commit 4d4de1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/deltalake/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ def validate_batch(batch: pa.RecordBatch) -> pa.RecordBatch:
schema, (validate_batch(batch) for batch in batch_iter)
)

if file_options is not None:
file_options.update(use_compliant_nested_type=False)
else:
file_options = pa.dataset.ParquetFileFormat().make_write_options(use_compliant_nested_type=False)
ds.write_dataset(
data,
base_dir="/",
Expand Down

0 comments on commit 4d4de1f

Please sign in to comment.