Skip to content

Commit db73e85

Browse files
committed
Set pyarrow string conversion
1 parent 6e9fc7f commit db73e85

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,12 @@ def configure_shuffling(shuffle_method):
691691
yield
692692

693693

694+
@pytest.fixture
695+
def configure_use_pyarrow_strings():
696+
with dask.config.set({"dataframe.convert-string": True}):
697+
yield
698+
699+
694700
# Include https://github.com/dask/distributed/pull/7534
695701
P2P_RECHUNK_AVAILABLE = Version(distributed.__version__) >= Version("2023.2.1")
696702

tests/workflows/test_from_csv_to_parquet.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ def from_csv_to_parquet_client(
102102
)
103103

104104

105-
def test_from_csv_to_parquet(from_csv_to_parquet_client, s3_factory, s3_url):
105+
def test_from_csv_to_parquet(
106+
from_csv_to_parquet_client, s3_factory, s3_url, configure_use_pyarrow_strings
107+
):
106108
s3 = s3_factory(anon=True)
107109
files = s3.ls("s3://gdelt-open-data/events/")[:1000]
108110
files = [f"s3://{f}" for f in files]

0 commit comments

Comments
 (0)