NoahKusaba commented on PR #2911:
URL:
https://github.com/apache/datafusion-ballista/pull/2911#issuecomment-7090423044
Thanks for picking this up! Could you include the `python/src/codec.rs`
change in this PR as well, rather than leaving it for a follow-up? It's the
same fix, and doing it here saves a separate review.
The two sites are the `DistributedQueryExec` logical plan decode and encode
in `PyBallistaPhysicalExtensionCodec` (`python/src/codec.rs:224` and `:311` on
main). They flatten the cause into `Internal(format!(... {e:?}))` the same way:
```rust
.map_err(|e| e.context("failed to decode DistributedQueryExec logical
plan"))?;
// and
.map_err(|e| e.context("failed to encode DistributedQueryExec logical
plan"))?;
```
The prost `encode` errors further down (`:326` and `:405`) can stay as they
are, since those failures really are internal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]