-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Test upgrade to arrow 7.x with new prost/tonic #1283
Conversation
When upgrading arrow only, the build fails like this
|
When I also update
(namely because
"Fixed" (worked around) in f2cfa38 |
@@ -135,24 +135,28 @@ impl BallistaClient { | |||
} | |||
|
|||
struct FlightDataStream { | |||
stream: Streaming<FlightData>, | |||
stream: Mutex<Streaming<FlightData>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is needed because after tonic/prost upgrade FlightData
is no longer Sync
. There are perhaps better ways to handle this
@alamb let us know if you need help with the ballista change. |
Facing with the same issue while updating #68 with arrow2 version 0.8 and arrow-format 0.3, since the same breaking change was introduced in DataEngineeringLabs/arrow-format#2. Thanks @alamb I use your mutex way here as a workaround, please let me know if you have further great solutions.😄 |
I did some poking around a while back and was going to write up an issue, but got pulled away to other things. The problem is that SendableRecordBatchStream has a Sync constraint on it. I think this is just a mistake in DataFusion, I can't see a compelling reason that being able to share immutable references to streams across threads is important, especially when stream consumption requires &mut. This would, however, be a fairly annoying breaking change to DataFusion and I wanted to provide more context before filing a ticket, but ran out of time |
Included in #1523 |
Rationale for this change
Test what would happen if we upgraded
prost
andtonic
dependencies in the arrow-rs 6.x line (aka what would happen if we merged apache/arrow-rs#945)?What changes are included in this PR?
temporarily override arrow to use apache/arrow-rs#945
Are there any user-facing changes?
No