pw42020 commented on issue #46633:
URL: https://github.com/apache/arrow/issues/46633#issuecomment-2917750984
Can you provide an example? When I try and recreate your code, I don't see
the intended difference.
```python
import pyarrow as pa
my_bytes = b"Hello, PyArrow!"
# Create a table with chunked arrays
table = pa.Table.from_arrays([
pa.chunked_array([[1, 2], [3, 4]]),
pa.chunked_array([['foo', 'bar'],['bap', 'baz']], type=pa.binary())
], names=["col1", "col2"])
# Combine the chunks
combined_table = table.combine_chunks()
print(table)
print(combined_table)
```
leads to
```sh
pyarrow.Table
col1: int64
col2: binary
----
col1: [[1,2],[3,4]]
col2: [[666F6F,626172],[626170,62617A]]
pyarrow.Table
col1: int64
col2: binary
----
col1: [[1,2,3,4]]
col2: [[666F6F,626172,626170,62617A]]
```
which successfully combined the binary types from the chunked array using
`combine_chunks()`
--
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]