adamreeve opened a new issue, #43145:
URL: https://github.com/apache/arrow/issues/43145
### Describe the bug, including details regarding any error messages,
version, and platform.
Reproduced using PyArrow 16.1.0 on Fedora 39 Linux. The null values are
still displayed as null when printing, but if round tripped via Parquet they
are lost:
```python
import pyarrow as pa
import pyarrow.parquet as pq
schema = pa.schema([
pa.field("x", pa.int64(), nullable=False)])
table = pa.Table.from_pydict({
"x": [1, None, 3],
}, schema=schema)
print(f"Original table:\n{table}\n")
pq.write_table(table, 'data.parquet')
read = pq.read_table('data.parquet')
print(f"Table from Parquet:\n{read}")
```
This outputs:
```
Original table:
pyarrow.Table
x: int64 not null
----
x: [[1,null,3]]
Table from Parquet:
pyarrow.Table
x: int64 not null
----
x: [[1,0,3]]
```
Is this expected behaviour? I would have thought this should raise an
exception when the table is created.
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]