[core][spark] Support selected-key pushdown for shared-shredding MAP#8782
[core][spark] Support selected-key pushdown for shared-shredding MAP#8782lszskye wants to merge 6 commits into
Conversation
|
Could we preserve the value type from the data schema when constructing the selected-key read field here? Currently, this branch adds I reproduced this with the following sequence:
The ORC reader returns The selected-key read |
Thank you for pointing this out. You are right—there was indeed a correctness issue in this scenario. I have fixed it and added ORC and Parquet regression tests covering MAP value-type evolution with selected-key pushdown. |
|
DONE. I have fixed this issue and added a unit test to verify it. |
|
Purpose
Support reading selected keys directly from shared-shredding MAP columns.
Previously, queries such as:
SELECT attrs['key1'], attrs['key2'] FROM T
still read and reconstructed the complete MAP value. This PR connects
__PAIMON_MAP_SELECTED_KEYSwith the shared-shredding reader so that onlythe required physical columns and overflow data are read.
Changes
FormatReaderMapping.the complete MAP.
physical columns, and overflow values.
files written with different layouts are not compatible.
has created
DataSourceV2ScanRelation.Tests
Added coverage for: