Returns Iceberg-compatible metadata for a DuckLake table, including schema, partitioning, and snapshot information in Iceberg format.
Note: This feature requires DuckLake functions that may not yet be available in all versions. Check DuckLake documentation for compatibility.
Value
A list containing Iceberg metadata:
table_uuid: Unique table identifierschema: Iceberg schema definitionpartition_spec: Partitioning specificationsort_order: Sort order specificationcurrent_snapshot_id: Current snapshot IDsnapshots: List of available snapshots
See also
db_export_iceberg() to export as Iceberg format
Examples
if (FALSE) { # \dontrun{
db_connect()
# Get Iceberg metadata
meta <- db_iceberg_metadata(table = "sales")
meta$schema
meta$partition_spec
} # }