Skip to content

Commit 5a6dd72

Browse files
inline pyarrow version def
1 parent 3e36526 commit 5a6dd72

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyiceberg/io/pyarrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@
204204
MAP_VALUE_NAME = "value"
205205
DOC = "doc"
206206
UTC_ALIASES = {"UTC", "+00:00", "Etc/UTC", "Z"}
207-
MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS = "20.0.0"
208207

209208
T = TypeVar("T")
210209

@@ -489,6 +488,7 @@ def _initialize_s3_fs(self, netloc: Optional[str]) -> FileSystem:
489488
def _initialize_azure_fs(self) -> FileSystem:
490489
from packaging import version
491490

491+
MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS = "20.0.0"
492492
if version.parse(pyarrow.__version__) < version.parse(MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS):
493493
raise ImportError(
494494
f"pyarrow version >= {MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS} required for AzureFileSystem support, "

tests/io/test_pyarrow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
from pyiceberg.io import InputStream, OutputStream, load_file_io
6161
from pyiceberg.io.pyarrow import (
6262
ICEBERG_SCHEMA,
63-
MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS,
6463
ArrowScan,
6564
PyArrowFile,
6665
PyArrowFileIO,
@@ -110,8 +109,8 @@
110109
from tests.conftest import UNIFIED_AWS_SESSION_PROPERTIES
111110

112111
skip_if_pyarrow_too_old = pytest.mark.skipif(
113-
version.parse(pyarrow.__version__) < version.parse(MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS),
114-
reason=f"Requires pyarrow version >= {MIN_PYARROW_VERSION_SUPPORTING_AZURE_FS}",
112+
version.parse(pyarrow.__version__) < version.parse("20.0.0"),
113+
reason=f"Requires pyarrow version >= 20.0.0",
115114
)
116115

117116

0 commit comments

Comments
 (0)