Skip to content

test: remove pyarrow prerelease pin #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions db_dtypes/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ def __array__(self, dtype=None, copy: bool | None = None) -> np.ndarray:


class JSONArrowScalar(pa.ExtensionScalar):
def as_py(self):
return JSONArray._deserialize_json(self.value.as_py() if self.value else None)
def as_py(self, **kwargs):
return JSONArray._deserialize_json(
self.value.as_py(**kwargs) if self.value else None
)


class JSONArrowType(pa.ExtensionType):
Expand Down
5 changes: 1 addition & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ def prerelease(session, tests_path):
"--prefer-binary",
"--pre",
"--upgrade",
# Limit pyarrow to versions prior to 20.0.0.dev19 to prevent a RuntimeWarning
# during import. This workaround can be removed once the underlying issue
# in pyarrow is resolved (see: https://github.com/apache/arrow/issues/45380).
"pyarrow<=20.0.0.dev18",
"pyarrow",
)
# Avoid pandas==2.2.0rc0 as this version causes PyArrow to fail. Once newer
# prerelease comes out, this constraint can be removed. See
Expand Down