[Parquet][C++] Support month_day_nano_interval type in Parquet
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the usage question you have. Please include as many useful details as possible.
I want to generate a parquet file including type month_day_nano_interval.
This is my python code:
import pyarrow as pa
import pyarrow.parquet as pq
# Define Schema
schema = pa.schema([
('itv', pa.month_day_nano_interval())
])
# Prepare data
itv = pa.array([(1 , 15, -30),
(0 , 0, 0),
(13,25,1000),
(13,25,1000000),
(13,25,1000000000)
],
type = pa.month_day_nano_interval())
# Generate Parquet data
batch = pa.RecordBatch.from_arrays( [itv], schema = schema )
table = pa.Table.from_batches([batch])
# Write Parquet file pqtpitvl.parquet
pq.write_table(table, 'pqtpitvl.parquet')
it was failed and display error:
pyarrow.lib.ArrowNotImplementedError: Unhandled type for Arrow to Parquet schema conversion: month_day_nano_interval
Contributor guide
Assessment
This issue has not been assessed yet.