Skip to content
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

Bump pyarrow upper bound #28437

Closed
wants to merge 2 commits into from
Closed
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
12 changes: 0 additions & 12 deletions sdks/python/apache_beam/io/parquetio_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,6 @@ def test_write_batched_display_data(self):
]
hc.assert_that(dd.items, hc.contains_inanyorder(*expected_items))

def test_sink_transform_int96(self):
with tempfile.NamedTemporaryFile() as dst:
path = dst.name
# pylint: disable=c-extension-no-member
with self.assertRaises(pl.ArrowInvalid):
# Should throw an error "ArrowInvalid: Casting from timestamp[ns] to
# timestamp[us] would lose data"
with TestPipeline() as p:
_ = p \
| Create(self.RECORDS) \
| WriteToParquet(
path, self.SCHEMA96, num_shards=1, shard_name_template='')

def test_sink_transform(self):
with TemporaryDirectory() as tmp_dirname:
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def cythonize(*args, **kwargs):
if sys.platform == 'win32' and sys.maxsize <= 2**32:
pyarrow_dependency = ''
else:
pyarrow_dependency = 'pyarrow>=3.0.0,<12.0.0'
pyarrow_dependency = 'pyarrow>=3.0.0,<14.0.0'

# Exclude pandas<=1.4.2 since it doesn't work with numpy 1.24.x.
# Exclude 1.5.0 and 1.5.1 because of
Expand Down
8 changes: 5 additions & 3 deletions sdks/python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ deps =
holdup==1.8.0
extras =
gcp
allowlist_externals =
allowlist_externals =
bash
echo
sleep
Expand Down Expand Up @@ -210,7 +210,7 @@ deps =
extras =
azure
passenv = REQUESTS_CA_BUNDLE
allowlist_externals =
allowlist_externals =
wget
az
bash
Expand Down Expand Up @@ -303,10 +303,12 @@ commands =
# Allow exit code 5 (no tests run) so that we can run this command safely on arbitrary subdirectories.
/bin/sh -c 'pytest -o junit_suite_name={envname} --junitxml=pytest_{envname}.xml -n 6 -m uses_pyarrow {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'

[testenv:py{38,39,310,311}-pyarrow-{10,11}]
[testenv:py{38,39,310,311}-pyarrow-{10,11,12,13}]
deps =
10: pyarrow>=10,<11
11: pyarrow>=11,<12
12: pyarrow>=12,<13
13: pyarrow>=13,<14
commands =
# Log pyarrow and numpy version for debugging
/bin/sh -c "pip freeze | grep -E '(pyarrow|numpy)'"
Expand Down
Loading