Dandandan opened a new issue, #24085:
URL: https://github.com/apache/datafusion/issues/24085
### Describe the bug
`MemorySourceConfig`'s projection is `Option<Vec<usize>>` but is encoded as
a bare `repeated uint32`:
```rust
// encode
let proto_projection =
source_conf.projection().as_ref().map_or_else(Vec::new, |v| ...);
// decode
let projection = if !scan.projection.is_empty() { Some(...) } else { None };
```
So `Some(vec![])` — project away every column — serializes exactly like
`None` and always decodes back as `None`, and the decoded scan reports every
column again.
### To Reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
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]