-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Python] Unhandled type for Arrow to Parquet schema conversion: month_day_nano_interval #36798
Comments
@emkornfield could you have a look this error? |
@westonpace do you have any idea for this? |
Seems interval is not handled by
You can:
|
This is whole error message
File "C:\Users\FoxHeather\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyarrow\parquet\core.py", line 966, in init |
Pyarrow is just a wrapper, finally it would goes here: https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/schema.cc#L433-L438 |
Closing as duplicate of #36799 |
Describe the bug, including details regarding any error messages, version, and platform.
Perform Python code to generate a parquet data with interval type, using APACHE ARROW.
Display error as below:
pyarrow.lib.ArrowNotImplementedError:
Unhandled type for Arrow to Parquet schema conversion: month_day_nano_interval
import pyarrow as pa
import pyarrow.parquet as pq
Define Schema
schema = pa.schema([
('itv', pa.month_day_nano_interval())
])
itv = pa.array([ (13,25,1000) ], 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')
display error
File "C:\Users\FoxHeather\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyarrow\parquet\core.py", line 966, in init
self.writer = _parquet.ParquetWriter(
^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow_parquet.pyx", line 1748, in pyarrow._parquet.ParquetWriter.cinit
File "pyarrow\error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Unhandled type for Arrow to Parquet schema conversion: month_day_nano_interval
Component(s)
Python
The text was updated successfully, but these errors were encountered: