Skip to content

Commit 622ac7d

Browse files
authored
fix: arrow version compatibility issues caused by API changes (#3748)
Original error message: https://github.com/lancedb/lance/actions/runs/14703221198/job/41257016490?pr=3745 related issue: #3747 This error is blocking my PR check, so please solve it as a priority. @westonpace @wjones127 Signed-off-by: jukejian <jukejian@bytedance.com>
1 parent 6d9ddbd commit 622ac7d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/python/lance/_arrow/bf16.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def from_numpy(cls, array: np.ndarray):
8181

8282

8383
class BFloat16Scalar(pa.ExtensionScalar):
84-
def as_py(self) -> Optional[BFloat16]:
84+
def as_py(self, **kwargs) -> Optional[BFloat16]:
8585
if self.value is None:
8686
return None
8787
else:
88-
return BFloat16.from_bytes(self.value.as_py())
88+
return BFloat16.from_bytes(self.value.as_py(**kwargs))
8989

9090
def __eq__(self, other: Any):
9191
from ml_dtypes import bfloat16

python/python/lance/arrow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ def tensorflow_encoder(x):
517517

518518

519519
class ImageScalar(pa.ExtensionScalar):
520-
def as_py(self):
521-
return self.value.as_py()
520+
def as_py(self, **kwargs):
521+
return self.value.as_py(**kwargs)
522522

523523

524524
class ImageURIScalar(ImageScalar):

0 commit comments

Comments
 (0)