liurenjie1024 commented on issue #244:
URL: https://github.com/apache/iceberg-rust/issues/244#issuecomment-2021856565
> I think this Implement sth like ArrowProjectionVisitor is for the
following two items?
Yes, but with one extra requirement: reconstructing struct arrays. For
example, when we select (`person.address.street`, `person.name`], we have
projection mask `[1,2]`, and the returned schema is
```
schema {
struct person {
struct address {
string street
}
string name
}
}
```
But what we expect is
```
schema {
string person
string name
}
```
> Currently https://github.com/apache/iceberg-rust/pull/245 has not
implemented these yet. I think we can finish the basic projection in
https://github.com/apache/iceberg-rust/pull/245 and I will continue work on the
ArrowProjectionVisitor to finish type promotion and default value.
This sound reasonable, but we need to add a verification that selected
fields are not nested fields and primitive types, which works for most cases.
--
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]