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

Commit

Permalink
Added support for other timestamp units from parquet (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao authored Feb 4, 2022
1 parent f35e02a commit 8fcab5c
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 191 deletions.
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

0 comments on commit 8fcab5c

Please sign in to comment.