Skip to content

Commit

Permalink
fix: fix ray lance sink error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-ju committed Dec 30, 2024
1 parent c237bcb commit 7943f7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/python/lance/ray/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,16 @@ def on_write_complete(
self,
write_results: List[List[Tuple[str, str]]],
):
import warnings

warnings.warn(
"write_result_blocks is empty.",
DeprecationWarning,
)
return "Empty list"

if hasattr(write_results, "write_returns"):
write_results = write_results.write_returns
fragments = []
schema = None
for batch in write_results:
Expand Down

0 comments on commit 7943f7e

Please sign in to comment.