import Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’;
Trino just like Presto allows you to query table formats like Hudi, Delta and Iceberg tables using connectors. Users do not need additional configurations to work with OneTable synced tables.
For more information and required configurations refer to:
For hands on experimentation, please follow Creating your first interoperable table to create OneTable synced tables followed by Hive Metastore to register the target table in Hive Metastore. Once done, please follow the below high level steps:
./bin/launcher run./trino-cliSELECT * FROM catalog.schema.table;.<Tabs groupId=“table-format” defaultValue=“hudi” values={[ { label: ‘targetFormat: HUDI’, value: ‘hudi’, }, { label: ‘targetFormat: DELTA’, value: ‘delta’, }, { label: ‘targetFormat: ICEBERG’, value: ‘iceberg’, }, ]}
:::tip Note: If you are following the example from Hive Metastore, you can query the OneTable synced Hudi table from Trino using the below query.
SELECT * FROM hudi.hudi_db.<table_name>;
:::
:::tip Note: If you are following the example from Hive Metastore, you can query the OneTable synced Delta table from Trino using the below query.
SELECT * FROM delta.delta_db.<table_name>;
:::
:::tip Note: If you are following the example from Hive Metastore, you can query the OneTable synced Iceberg table from Trino using the below query.
SELECT * FROM iceberg.iceberg_db.<table_name>;
:::