Skip to content

Commit

Permalink
Added some f;ags for handling timestampls in parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
joosthooz authored and austin3dickey committed Aug 30, 2022
1 parent 84ed050 commit 389a548
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datalogistik/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,10 @@ def convert_dataset(
if parquet_compression is None:
parquet_compression = "snappy" # Use snappy by default
write_options = dataset_write_format.make_write_options(
compression=parquet_compression
compression=parquet_compression,
use_deprecated_int96_timestamps=False,
coerce_timestamps="us",
allow_truncated_timestamps=True,
)
if new_format == "csv":
dataset_write_format = ds.CsvFileFormat()
Expand Down

0 comments on commit 389a548

Please sign in to comment.