Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: copy the unsafe row otherwise the queue will have all the same rows #3026

Closed
wants to merge 1 commit into from

Conversation

SaintBacchus
Copy link
Contributor

The unsafe row use the same referrence of rows.
When we offer rows to queue, all the rows in queu will be same.

image

Copy the internal row to avoid this issue.

@github-actions github-actions bot added bug Something isn't working java labels Oct 21, 2024
@broccoliSpicy broccoliSpicy requested a review from LuQQiu November 8, 2024 19:48
@LuQQiu
Copy link
Collaborator

LuQQiu commented Nov 8, 2024

As discussed offline, the java/spark/src/main/java/com/lancedb/lance/spark/write/LanceArrowWriter.java is for zero copy write to Lance.
Thanks for the fix, could we convert from Spark Type to Arrow type and store the Arrow Type into the Queue directly

@SaintBacchus
Copy link
Contributor Author

OK, I will refactor the queue later. But I think it's a fast fix for use.

@SaintBacchus
Copy link
Contributor Author

Close this PR since this ISSUE will be fixed in #3110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants