Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added support for other timestamp units from parquet #803

Merged
merged 3 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions parquet_integration/write_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def case_basic_nullable(size=1):
pa.field("decimal_18", pa.decimal128(18, 0)),
pa.field("decimal_26", pa.decimal128(26, 0)),
pa.field("timestamp_us", pa.timestamp("us")),
pa.field("timestamp_s", pa.timestamp("s")),
]
schema = pa.schema(fields)

Expand All @@ -45,6 +46,7 @@ def case_basic_nullable(size=1):
"decimal_18": decimal * size,
"decimal_26": decimal * size,
"timestamp_us": int64 * size,
"timestamp_s": int64 * size,
},
schema,
f"basic_nullable_{size*10}.parquet",
Expand Down
Loading