This documentation is for an unreleased version of Apache Paimon. We recommend you use the latest stable version.
Iceberg Tags
Iceberg Tags #
When enable iceberg compatibility, Paimon Tags will also be synced to Iceberg Tags.
CREATE CATALOG paimon WITH (
'type' = 'paimon',
'warehouse' = '<path-to-warehouse>'
);
CREATE CATALOG iceberg WITH (
'type' = 'iceberg',
'catalog-type' = 'hadoop',
'warehouse' = '<path-to-warehouse>/iceberg',
'cache-enabled' = 'false' -- disable iceberg catalog caching to quickly see the result
);
-- create tag for paimon table
CALL paimon.sys.create_tag('default.T', 'tag1', 1);
-- query tag in iceberg table
SELECT * FROM iceberg.`default`.T /*+ OPTIONS('tag'='tag1') */;