You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a server that supports Arrow Flight gRPC while query execution is done by Velox.
For this, the output RowVectors must outlive the Task object that produced them so that the client can fetch them (converted to Arrow RecordBatch using the bridge) later.
But it seems that it does not.
When I tested the server I've implemented, the server crashed when the RowVectors are freed after freeing the Task object.
I've forcefully fixed it by deep-copying the RowVectors, but then the zero-copy cannot be accomplished.
Maybe I've implemented it incorrectly, but what I want to know is: can RowVectors got from Task::next() can outlive the Task object? If not, is there another way to retain the content of the RowVectors without copying after freeing the Task object?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm building a server that supports Arrow Flight gRPC while query execution is done by Velox.
For this, the output RowVectors must outlive the Task object that produced them so that the client can fetch them (converted to Arrow RecordBatch using the bridge) later.
But it seems that it does not.
When I tested the server I've implemented, the server crashed when the RowVectors are freed after freeing the Task object.
I've forcefully fixed it by deep-copying the RowVectors, but then the zero-copy cannot be accomplished.
Maybe I've implemented it incorrectly, but what I want to know is: can RowVectors got from Task::next() can outlive the Task object? If not, is there another way to retain the content of the RowVectors without copying after freeing the Task object?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions