Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update file.py
Signed-off-by: Max Zwiessle <ibinbei@gmail.com>
  • Loading branch information
mzwiessele committed Oct 12, 2022
commit 69b3fae7389cdb953a7b27abc559193bebaf18db
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ def create_data_source(
prefix=f"{self.project_name}_{destination_name}"
)
table = pa.Table.from_pandas(df)
pq.write_to_dataset(table, dataset_path.name, compression="snappy")
pq.write_to_dataset(
table,
base_dir=dataset_path.name,
compression="snappy",
format="parquet",
existing_data_behavior="overwrite_or_ignore",
)
self.files.append(dataset_path)
return FileSource(
file_format=ParquetFormat(),
Expand Down