You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "mkleinbort-ic (via GitHub)" <gi...@apache.org> on 2024/02/20 12:03:36 UTC
[I] Add support for List as a data type in the writer [iceberg-python]
mkleinbort-ic opened a new issue, #451:
URL: https://github.com/apache/iceberg-python/issues/451
### Feature Request / Improvement
This code does not work:
```python
import polars as pl
df = pl.DataFrame({'x':[[1,2,3]]}, schema={'x':pl.List(pl.Int8)}).to_arrow()
# pyarrow.Table
# x: large_list<item: int8>
# child 0, item: int8
# ----
# x: [[[1,2,3]]]
table = catalog.create_table(
"default.test_table_02",
schema=df.schema,
)
```
With error
```
TypeError: Expected primitive type, got: <class 'pyarrow.lib.LargeListType'>
```
I'd be good to support List data types
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Add support for List as a data type in the writer [iceberg-python]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko closed issue #451: Add support for List as a data type in the writer
URL: https://github.com/apache/iceberg-python/issues/451
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Add support for List as a data type in the writer [iceberg-python]
Posted by "hussein-awala (via GitHub)" <gi...@apache.org>.
hussein-awala commented on issue #451:
URL: https://github.com/apache/iceberg-python/issues/451#issuecomment-1955288007
The list data type is supported in PyIceberg, but there is a bug in the mapping method, I believe https://github.com/apache/iceberg-python/pull/458 will fix the issue.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org