Skip to content

Commit b7d2744

Browse files
committed
feat(gooddata-pandas): add Arrow IPC execution path via for_exec_def_arrow
1 parent 49ea0d5 commit b7d2744

120 files changed

Lines changed: 7083 additions & 645 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/gooddata-pandas/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies = [
3232
"gooddata-sdk~=1.62.0",
3333
"pandas>=2.0.0,<3.0.0",
3434
]
35-
3635
classifiers = [
3736
"Development Status :: 5 - Production/Stable",
3837
"Environment :: Console",
@@ -47,6 +46,9 @@ classifiers = [
4746
"Typing :: Typed",
4847
]
4948

49+
[project.optional-dependencies]
50+
arrow = ["pyarrow>=23.0.1"]
51+
5052
[project.urls]
5153
Documentation = "https://gooddata-pandas.readthedocs.io/en/v1.62.0"
5254
Source = "https://github.com/gooddata/gooddata-python-sdk"
@@ -63,6 +65,7 @@ test = [
6365
"python-dotenv~=1.0.0",
6466
"pyyaml",
6567
"tests_support",
68+
"pyarrow>=16.1.0",
6669
]
6770

6871
[tool.ty.analysis]

packages/gooddata-pandas/src/gooddata_pandas/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# (C) 2021 GoodData Corporation
22

33
from gooddata_pandas._version import __version__
4+
from gooddata_pandas.arrow_types import TypesMapper
5+
6+
try:
7+
from gooddata_pandas.arrow_convertor import convert_arrow_table_to_dataframe
8+
except ImportError:
9+
10+
def convert_arrow_table_to_dataframe(*args, **kwargs):
11+
raise ImportError("pyarrow is required for Arrow support. Install it with: pip install gooddata-pandas[arrow]")
12+
13+
414
from gooddata_pandas.dataframe import DataFrameFactory
515
from gooddata_pandas.good_pandas import GoodPandas
616
from gooddata_pandas.result_convertor import LabelOverrides

0 commit comments

Comments
 (0)