-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Make RowType fields available in SPI? #5601
Comments
Could you provide more details about why it's needed? The current implementation doesn't need it, and it can support reading and writing them |
When we are trying to implement Nested Schema Evolution, and Nested Column Pruning in #5547, we need to get RowFields of a RowType, and use each RowField name to look up the corresponding parquet type in parquet file schema. There is no RowType information in SPI, then Parquet files could not get RowFields. |
You should be able to get that information by calling |
Thank you, @cberner Correct me if I get misunderstanding. if I have a RowType struct: My understanding is getTypeSignature().getParameters() will return |
yes, it should return a list of the fields which can be accessed as |
oh, get it. Thank you |
Np. Please re-open if you end up needing this |
Currently, RowType is in presto-main, not in presto-spi
To better handle nested fields in Parquet(or ORC), need to get fields for a RowType, and RowField. Is it possible to put RowType in presto-spi? Or, is there other ways to make Parquet or ORC aware of RowType and RowFields?
@martint @dain @cberner @electrum @erichwang
The text was updated successfully, but these errors were encountered: