Fokko opened a new issue, #36845:
URL: https://github.com/apache/arrow/issues/36845
### Describe the enhancement requested
I would expect to allow `concat_tables` to promote an int32 to an int64:
```python
def test_concat_tables_with_promotion_int():
import pyarrow as pa
t1 = pa.Table.from_arrays(
[pa.array([1, 2], type=pa.int64())], ["int"])
t2 = pa.Table.from_arrays(
[pa.array([3, 4], type=pa.int32())], ["int"])
result = pa.concat_tables([t1, t2], promote=True)
assert result.equals(pa.Table.from_arrays([
pa.array([1, 2, 3, 4], type=pa.int64())
], ["int"]))
```
This fails with PyArrow 12.0.0.1
```
> ???
E pyarrow.lib.ArrowInvalid: Unable to merge: Field int has incompatible
types: int64 vs int32
```
### 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]