laskoviymishka opened a new pull request, #17411:
URL: https://github.com/apache/iceberg/pull/17411

   Makes the catalog-provided labels reachable from Spark.
   
   Stacked on the catalog PR (which is stacked on #17337). Review the top 
commit — the lower layers belong to the parent PRs.
   
   ## What changed
   
   - New `LabelsTable` metadata table (core): `MetadataTableType.LABELS` plus a 
`BaseMetadataTable` that flattens a table's labels into rows `{scope, field_id, 
key, value}`. Object-level labels use scope `object` with a null `field_id`; 
field-level labels use scope `field`. Registered in `MetadataTableUtils`, so it 
is queryable as `SELECT * FROM tbl.labels` (Spark routes metadata tables 
generically, no Spark-side change needed for query access).
   - `BaseSparkTable.properties()` surfaces labels under `labels.object.*` and 
`labels.field.<id>.*` so they appear in `DESCRIBE EXTENDED`. Driver-side only; 
labels are ephemeral catalog enrichment and are not distributed to executors.
   


-- 
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]

Reply via email to