Skip to content

Commit aef767f

Browse files
committed
resolve merge conflicts
2 parents b0855e0 + fa21733 commit aef767f

File tree

4 files changed

+141
-161
lines changed

4 files changed

+141
-161
lines changed

awswrangler/athena/_cache.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ def sorted_successful_generator(self) -> list["QueryExecutionTypeDef"]:
7373
Returns successful DDL and DML queries sorted by query completion time.
7474
"""
7575
filtered: list["QueryExecutionTypeDef"] = []
76-
for query in self._cache.values():
77-
if (query["Status"].get("State") == "SUCCEEDED") and (query.get("StatementType") in ["DDL", "DML"]):
78-
filtered.append(query)
76+
with self._lock:
77+
for query in self._cache.values():
78+
if (query["Status"].get("State") == "SUCCEEDED") and (query.get("StatementType") in ["DDL", "DML"]):
79+
filtered.append(query)
7980
return sorted(filtered, key=lambda e: str(e["Status"]["CompletionDateTime"]), reverse=True)
8081

8182
def __contains__(self, key: str) -> bool:

awswrangler/distributed/ray/datasources/file_datasink.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ray.data._internal.delegating_block_builder import DelegatingBlockBuilder
1111
from ray.data._internal.execution.interfaces import TaskContext
1212
from ray.data.block import Block, BlockAccessor
13-
from ray.data.datasource.datasink import Datasink
13+
from ray.data.datasource.datasink import Datasink, WriteResult
1414
from ray.data.datasource.filename_provider import FilenameProvider
1515
from ray.types import ObjectRef
1616

@@ -21,7 +21,7 @@
2121
_logger: logging.Logger = logging.getLogger(__name__)
2222

2323

24-
class _BlockFileDatasink(Datasink):
24+
class _BlockFileDatasink(Datasink[str]):
2525
def __init__(
2626
self,
2727
path: str,
@@ -91,12 +91,12 @@ def write_block(self, file: Any, block: BlockAccessor) -> None:
9191
# and is meant to be used for singular actions like
9292
# [committing a transaction](https://docs.ray.io/en/latest/data/api/doc/ray.data.Datasource.html).
9393
# As deceptive as it may look, there is no race condition here.
94-
def on_write_complete(self, write_results: list[Any], **_: Any) -> None:
94+
def on_write_complete(self, write_results: WriteResult[str]) -> None:
9595
"""Execute callback after all write tasks complete."""
9696
_logger.debug("Write complete %s.", write_results)
9797

9898
# Collect and return all write task paths
99-
self._write_paths.extend(write_results)
99+
self._write_paths.extend(write_results.write_returns)
100100

101101
def get_write_paths(self) -> list[str]:
102102
"""Return S3 paths of where the results have been written."""

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ dependencies = [
2323
"botocore>=1.23.32,<2",
2424
"pandas>=1.2.0,<3.0.0",
2525
"numpy>=1.26,<3.0",
26-
"pyarrow>=8.0.0,<19.0.0",
26+
"pyarrow>=18.0.0,<19.0.0 ; sys_platform != 'darwin' or platform_machine != 'x86_64'",
27+
# pyarrow 18 causes macos build failures
28+
# https://github.com/ray-project/ray/pull/48446
29+
"pyarrow>=8.0.0,<19.0.0 ; sys_platform == 'darwin' and platform_machine == 'x86_64'",
2730
"typing-extensions>=4.4.0,<5",
2831
"packaging>=21.1,<25.0",
29-
'setuptools ; python_version >= "3.12"',
32+
"setuptools ; python_version >= '3.12'",
3033
]
3134

3235
[project.optional-dependencies]
@@ -56,7 +59,7 @@ progressbar = ["progressbar2>=4.0.0,<5"]
5659
deltalake = ["deltalake>=0.18.0,<0.26.0"]
5760
geopandas = ["geopandas>=1.0.0,<2"]
5861
modin = ["modin>=0.31,<0.33"]
59-
ray = ["ray[default, data]>=2.30.0,<2.38.0"]
62+
ray = ["ray[default, data]>=2.45.0,<3"]
6063

6164
[project.urls]
6265
Homepage = "https://aws-sdk-pandas.readthedocs.io/"

0 commit comments

Comments
 (0)