diff --git a/dev/tasks/docker-tests/github.linux.yml b/dev/tasks/docker-tests/github.linux.yml index afb0e1569eea..e424d2a0193e 100644 --- a/dev/tasks/docker-tests/github.linux.yml +++ b/dev/tasks/docker-tests/github.linux.yml @@ -28,7 +28,7 @@ jobs: test: name: | Docker Test {{ flags|default("") }} {{ image }} {{ command|default("") }} - runs-on: ubuntu-latest + runs-on: {{ runs_on|default("ubuntu-latest") }} {{ macros.github_set_env(env) }} timeout-minutes: {{ timeout|default(60) }} steps: diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.yml index a5f25ccec7b5..fc9b66ab3841 100644 --- a/dev/tasks/tasks.yml +++ b/dev/tasks/tasks.yml @@ -408,6 +408,9 @@ tasks: DEBIAN: "{{ debian_version }}" flags: "-e ARROW_AZURE=OFF -e ARROW_S3=OFF -e ARROW_GANDIVA=OFF" image: debian-cpp + # This can be unpinned to use latest once the following issue is solved: + # https://github.com/actions/runner-images/issues/14790 + runs_on: ubuntu-24.04 {% endfor %} test-debian-experimental-cpp-gcc-15: @@ -526,6 +529,9 @@ tasks: DEBIAN: "{{ debian_version }}" flags: "-e ARROW_S3=OFF -e ARROW_GANDIVA=OFF" image: debian-python + # This can be unpinned to use latest once the following issue is solved: + # https://github.com/actions/runner-images/issues/14790 + runs_on: ubuntu-24.04 {% endfor %} test-ubuntu-24.04-python-3: diff --git a/python/pyarrow/_parquet.pyx b/python/pyarrow/_parquet.pyx index 848e28eef98d..2e56c608d915 100644 --- a/python/pyarrow/_parquet.pyx +++ b/python/pyarrow/_parquet.pyx @@ -2086,11 +2086,12 @@ cdef shared_ptr[WriterProperties] _create_writer_properties( WriterProperties.Builder props CdcOptions cdc_options double savings + double default_min_savings = 0.01 savings = min_compression_savings if not (0.0 <= savings <= 1.0): raise ValueError("min_compression_savings must be in range [0, 1]") - if savings > 0.01 and data_page_version == "1.0": + if savings > default_min_savings and data_page_version == "1.0": raise ValueError("min_compression_savings requires V2 data pages") props.min_compression_savings(savings)