Skip to content

Commit d3ec6a0

Browse files
authored
[data] Pass along kwargs to prevent breaking ArrowPythonObjectScalar (#51041)
## Why are these changes needed? Our tests with pyarrow nightly caught a backwards incompatibility bug with a [recent pyarrow change](apache/arrow#45471). To fix this we simply need to pass along kwargs in our `as_py` method as suggested by the pyarrow team [here](apache/arrow#45471 (comment)). --------- Signed-off-by: Matthew Owen <mowen@anyscale.com>
1 parent d11bec1 commit d3ec6a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • python/ray/air/util/object_extensions

python/ray/air/util/object_extensions/arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __reduce__(self):
7777
class ArrowPythonObjectScalar(pa.ExtensionScalar):
7878
"""Scalar class for ArrowPythonObjectType"""
7979

80-
def as_py(self) -> typing.Any:
80+
def as_py(self, **kwargs) -> typing.Any:
8181
if not isinstance(self.value, pa.LargeBinaryScalar):
8282
raise RuntimeError(
8383
f"{type(self.value)} is not the expected LargeBinaryScalar"

0 commit comments

Comments
 (0)