kokila-19 opened a new pull request, #7002: URL: https://github.com/apache/hive/pull/7002
…and `_last_updated_sequence_number`. Ensure Interoperability with spark using iceberg metadata names. ### What changes were proposed in this pull request? Iceberg v3 row-lineage columns can now be queried by the metadata names `_row_i` and `_last_updated_sequence_number`. Those names are registered as aliases of the existing virtual columns ROW__LINEAGE__ID and LAST__UPDATED__SEQUENCE__NUMBER. Each alias is an extra lookup key on the same ColumnInfo so the schema still has one slot per lineage column and execution still reads the Hive virtual-column name. A real column already named _row_id is left unchanged. ### Why are the changes needed? Hive already reads Iceberg v3 row lineage but only under ROW__LINEAGE__ID and LAST__UPDATED__SEQUENCE__NUMBER. Iceberg and Spark expose the same values as _row_id and _last_updated_sequence_number. A query using the Iceberg names failed during semantic analysis with **SemanticException [Error 10004]: Invalid table alias or column reference '_row_id'.** ### Does this PR introduce _any_ user-facing change? Yes. On an Iceberg v3 table, these queries now succeed: ``` select `_row_id`, `_last_updated_sequence_number` from ice_t where `_row_id` = 0; select id from ice_t where ice_t.`_last_updated_sequence_number` = 1; ``` ### How was this patch tested? qtest: iceberg/iceberg-handler/src/test/queries/positive/row_lineage.q -- 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]
