You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…#33994)
If the AdaptiveIntBuilder was empty it would yield a null for the values buffer. The byte_size.h utilities were not expecting this which led to the error reported in the issue.
Example:
```
>>> pa.array([], type=pa.dictionary(pa.int32(), pa.string())).buffers()
[None, None]
```
* Closes: #33971
Authored-by: Weston Pace <weston.pace@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
…buffer (apache#33994)
If the AdaptiveIntBuilder was empty it would yield a null for the values buffer. The byte_size.h utilities were not expecting this which led to the error reported in the issue.
Example:
```
>>> pa.array([], type=pa.dictionary(pa.int32(), pa.string())).buffers()
[None, None]
```
* Closes: apache#33971
Authored-by: Weston Pace <weston.pace@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
…buffer (apache#33994)
If the AdaptiveIntBuilder was empty it would yield a null for the values buffer. The byte_size.h utilities were not expecting this which led to the error reported in the issue.
Example:
```
>>> pa.array([], type=pa.dictionary(pa.int32(), pa.string())).buffers()
[None, None]
```
* Closes: apache#33971
Authored-by: Weston Pace <weston.pace@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
fatemehp
pushed a commit
to fatemehp/arrow
that referenced
this issue
Feb 24, 2023
…buffer (apache#33994)
If the AdaptiveIntBuilder was empty it would yield a null for the values buffer. The byte_size.h utilities were not expecting this which led to the error reported in the issue.
Example:
```
>>> pa.array([], type=pa.dictionary(pa.int32(), pa.string())).buffers()
[None, None]
```
* Closes: apache#33971
Authored-by: Weston Pace <weston.pace@gmail.com>
Signed-off-by: Weston Pace <weston.pace@gmail.com>
Describe the bug, including details regarding any error messages, version, and platform.
Using
pyarrow.Table.nbytes
on an empty table with a dictionary field causes a segmentation fault.A few notes:
get_total_buffer_size
works (which is a good workaround for now)pyarrow==11.0.0
and Python 3.9.16 (but it is happening in10.0.1
as well, so not a new bug)Component(s)
Python
The text was updated successfully, but these errors were encountered: