Apache Iceberg is an open table format for huge analytic datasets. Iceberg adds tables to compute engines including Spark, Trino, PrestoDB, Flink, Hive and Impala using a high-performance table format that works just like a SQL table.
This article assumes that you have mastered the basic knowledge and operation of Iceberg. For the knowledge about Iceberg not mentioned in this article, you can obtain it from its Official Documentation.
By using kyuubi, we can run SQL queries towards Iceberg which is more convenient, easy to understand, and easy to expand than directly using Trino to manipulate Iceberg.
To enable the integration of kyuubi trino sql engine and Iceberg through Catalog APIs, you need to:
Setting the Trino extension and catalog Configurations
To activate functionality of Iceberg, we can set the following configurations:
CREATE TABLE as a example,
CREATE TABLE orders ( orderkey bigint, orderstatus varchar, totalprice double, orderdate date ) WITH ( format = 'ORC' );
SELECT as a example,
SELECT * FROM new_orders;
INSERT as a example,
INSERT INTO cities VALUES (1, 'San Francisco');
UPDATE as a example,
UPDATE purchases SET status = 'OVERDUE' WHERE ship_date IS NULL;
DELETE FROM as a example,
DELETE FROM lineitem WHERE shipmode = 'AIR';