Skip to content

Commit b9b3f2f

Browse files
omatthew98abrarsheikh
authored andcommitted
[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 <[email protected]> Signed-off-by: Abrar Sheikh <[email protected]>
1 parent e60c78b commit b9b3f2f

File tree

1 file changed

+1
-1
lines changed
  • python/ray/air/util/object_extensions

1 file changed

+1
-1
lines changed

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)