iceberg_meta

    iceberg_meta表函数(table-valued-function,tvf),可以用于读取iceberg表的各类元数据信息,如操作历史、生成的快照、文件元数据等。

    参数说明

    iceberg_meta表函数 tvf中的每一个参数都是一个 对。 相关参数:

    • table: (必填) 完整的表名,需要按照目录名.库名.表名的格式,填写需要查看的iceberg表名。
    • query_type: (必填) 想要查看的元数据类型,目前仅支持snapshots。
    1. select * from iceberg_meta("table" = "ctl.db.tbl", "query_type" = "snapshots");

    可以配合使用

    1. iceberg_meta, table-valued-function, tvf

    查看iceberg表的snapshots

    1. where snapshot_id = 98865735822;
    2. | committed_at | snapshot_id | parent_id | operation | manifest_list |
    3. +------------------------+----------------+---------------+-----------+-------------------+