Then try to add another similar column. This does not work.
>>> table = table.append_column(pyarrow.field("c", pyarrow.string(), nullable=True), [[None]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyarrow/table.pxi", line 4495, in pyarrow.lib.Table.append_column
File "pyarrow/table.pxi", line 4452, in pyarrow.lib.Table.add_column
File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Field type did not match data type
System Info
This is on Windows 11 under WSL2
>>> pyarrow.show_versions()
pyarrow version info
--------------------
Package kind : python-wheel-manylinux2014
Arrow C++ library version : 11.0.0
Arrow C++ compiler : GNU 10.2.1
Arrow C++ compiler flags : -fdiagnostics-color=always
Arrow C++ git revision :
Arrow C++ git description :
Arrow C++ build type : release
Issue Description
It seems not possible to be able to append a nullable column to a table.
Start off with a table. This works fine.
Then try to add another similar column. This does work.
Then try to add another similar column. This does not work.
System Info
This is on Windows 11 under WSL2