Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1668] Improvement (trino-connector): Pass the Trino-connector attributes when creating a Gravitino catalog (#1828)

Yuhui25755b327ef5
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/00004_query_pushdown.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/00004_query_pushdown.txt
index e3dd6d2976..3d4c52bc99 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/00004_query_pushdown.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/00004_query_pushdown.txt
@@ -39,6 +39,8 @@ INSERT: 15000 rows
"
"Trino version: %
+%
+ └─ TableScan[table = test.gt_mysql:Query[SELECT % INNER JOIN %] limit=10 columns=%]]
%
"
@@ -46,4 +48,4 @@ DROP TABLE
DROP TABLE
-DROP SCHEMA
\ No newline at end of file
+DROP SCHEMA
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/catalog_mysql_prepare.sql b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/catalog_mysql_prepare.sql
index d79a391c6d..eacf543b4a 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/catalog_mysql_prepare.sql
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-mysql/catalog_mysql_prepare.sql
@@ -2,7 +2,7 @@ call gravitino.system.create_catalog(
'gt_mysql',
'jdbc-mysql',
map(
- array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-driver'],
- array['${mysql_uri}/?useSSL=false', 'trino', 'ds123', 'com.mysql.cj.jdbc.Driver']
+ array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-driver', 'join-pushdown.strategy'],
+ array['${mysql_uri}/?useSSL=false', 'trino', 'ds123', 'com.mysql.cj.jdbc.Driver', 'EAGER']
)
);
\ No newline at end of file
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.sql b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.sql
index 6ba4a65ab6..d5a16ec588 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.sql
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.sql
@@ -42,8 +42,7 @@ explain select sum(totalprice) from orders;
explain select orderdate, sum(totalprice) from orders group by orderdate order by orderdate limit 10;
-- join push down
--- set session "test.gt_postgresql".join_pushdown_strategy='eager';
--- explain select customer.custkey, orders.orderkey from customer join orders on customer.custkey = orders.custkey order by orders.orderkey limit 10;
+explain select customer.custkey, orders.orderkey from customer join orders on customer.custkey = orders.custkey order by orders.orderkey limit 10;
drop table customer;
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.txt
index 258d3e08cd..6dbdd43021 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/00004_query_pushdown.txt
@@ -38,6 +38,13 @@ INSERT: 15000 rows
%
"
+"Trino version: %
+%
+ TableScan[table = test.gt_postgresql:Query[SELECT l.""orderkey"" AS ""orderkey_0"", l.""custkey"" AS ""custkey_1"", r.""custkey"" AS ""custkey_2"" FROM (SELECT ""orderkey"", ""custkey"" FROM ""gt_db1"".""orders"") l INNER JOIN (SELECT ""custkey"" FROM ""gt_db1"".""customer"") r ON l.""custkey"" = r.""custkey""] sortOrder=[orderkey_0:bigint:int8 ASC NULLS LAST] limit=10 columns=[orderkey_0:bigint:int8, custkey_2:bigint:int8]]
+ Layout: [orderkey:bigint, custkey:bigint]
+%
+"
+
DROP TABLE
DROP TABLE
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/catalog_pg_prepare.sql b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/catalog_pg_prepare.sql
index 2efc29a07f..d99ff9d808 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/catalog_pg_prepare.sql
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/jdbc-postgresql/catalog_pg_prepare.sql
@@ -2,7 +2,7 @@ call gravitino.system.create_catalog(
'gt_postgresql',
'jdbc-postgresql',
map(
- array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-database', 'jdbc-driver'],
- array['${postgresql_uri}/gt_db', 'trino', 'ds123', 'gt_db', 'org.postgresql.Driver']
+ array['jdbc-url', 'jdbc-user', 'jdbc-password', 'jdbc-database', 'jdbc-driver', 'join-pushdown.strategy'],
+ array['${postgresql_uri}/gt_db', 'trino', 'ds123', 'gt_db', 'org.postgresql.Driver', 'EAGER']
)
);
\ No newline at end of file
diff --git a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/hive/HiveCatalogPropertyConverter.java b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/hive/HiveCatalogPropertyConverter.java
index d4622a6ddc..89515f4c8c 100644
--- a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/hive/HiveCatalogPropertyConverter.java
+++ b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/hive/HiveCatalogPropertyConverter.java
@@ -22,11 +22,12 @@ public class HiveCatalogPropertyConverter extends PropertyConverter {
new TreeBidiMap<>(
new ImmutableMap.Builder<String, String>()
// Key is the Trino property, value is the Gravitino property
- .put("hive.storage-format", "hive.storage-format")
- .put("hive.compression-codec", "hive.compression-codec")
+ // General configuration
.put("hive.config.resources", "hive.config.resources")
.put("hive.recursive-directories", "hive.recursive-directories")
.put("hive.ignore-absent-partitions", "hive.ignore-absent-partitions")
+ .put("hive.storage-format", "hive.storage-format")
+ .put("hive.compression-codec", "hive.compression-codec")
.put("hive.force-local-scheduling", "hive.force-local-scheduling")
.put("hive.respect-table-format", "hive.respect-table-format")
.put("hive.immutable-partitions", "hive.immutable-partitions")
@@ -40,6 +41,99 @@ public class HiveCatalogPropertyConverter extends PropertyConverter {
.put("hive.max-partitions-per-writers", "hive.max-partitions-per-writers")
.put("hive.max-partitions-for-eager-load", "hive.max-partitions-for-eager-load")
.put("hive.max-partitions-per-scan", "hive.max-partitions-per-scan")
+ .put("hive.dfs.replication", "hive.dfs.replication")
+ .put("hive.security", "hive.security")
+ .put("security.config-file", "security.config-file")
+ .put("hive.non-managed-table-writes-enabled", "hive.non-managed-table-writes-enabled")
+ .put(
+ "hive.non-managed-table-creates-enabled",
+ "hive.non-managed-table-creates-enabled")
+ .put(
+ "hive.collect-column-statistics-on-write",
+ "hive.collect-column-statistics-on-write")
+ .put("hive.file-status-cache-tables", "hive.file-status-cache-tables")
+ .put(
+ "hive.file-status-cache.max-retained-size",
+ "hive.file-status-cache.max-retained-size")
+ .put("hive.file-status-cache-expire-time", "hive.file-status-cache-expire-time")
+ .put(
+ "hive.per-transaction-file-status-cache.max-retained-size",
+ "hive.per-transaction-file-status-cache.max-retained-size")
+ .put("hive.timestamp-precision", "hive.timestamp-precision")
+ .put(
+ "hive.temporary-staging-directory-enabled",
+ "hive.temporary-staging-directory-enabled")
+ .put("hive.temporary-staging-directory-path", "hive.temporary-staging-directory-path")
+ .put("hive.hive-views.enabled", "hive.hive-views.enabled")
+ .put("hive.hive-views.legacy-translation", "hive.hive-views.legacy-translation")
+ .put(
+ "hive.parallel-partitioned-bucketed-writes",
+ "hive.parallel-partitioned-bucketed-writes")
+ .put("hive.fs.new-directory-permissions", "hive.fs.new-directory-permissions")
+ .put("hive.fs.cache.max-size", "hive.fs.cache.max-size")
+ .put("hive.query-partition-filter-required", "hive.query-partition-filter-required")
+ .put("hive.table-statistics-enabled", "hive.table-statistics-enabled")
+ .put("hive.auto-purge", "hive.auto-purge")
+ .put("hive.partition-projection-enabled", "hive.partition-projection-enabled")
+ .put("hive.max-partition-drops-per-query", "hive.max-partition-drops-per-query")
+ .put("hive.single-statement-writes", "hive.single-statement-writes")
+
+ // Performance
+ .put("hive.max-outstanding-splits", "hive.max-outstanding-splits")
+ .put("hive.max-outstanding-splits-size", "hive.max-outstanding-splits-size")
+ .put("hive.max-splits-per-second", "hive.max-splits-per-second")
+ .put("hive.max-initial-splits", "hive.max-initial-splits")
+ .put("hive.max-initial-split-size", "hive.max-initial-split-size")
+ .put("hive.max-split-size", "hive.max-split-size")
+
+ // S3
+ .put("hive.s3.aws-access-key", "hive.s3.aws-access-key")
+ .put("hive.s3.aws-secret-key", "hive.s3.aws-secret-key")
+ .put("hive.s3.iam-role", "hive.s3.iam-role")
+ .put("hive.s3.external-id", "hive.s3.external-id")
+ .put("hive.s3.endpoint", "hive.s3.endpoint")
+ .put("hive.s3.region", "hive.s3.region")
+ .put("hive.s3.storage-class", "hive.s3.storage-class")
+ .put("hive.s3.signer-type", "hive.s3.signer-type")
+ .put("hive.s3.signer-class", "hive.s3.signer-class")
+ .put("hive.s3.path-style-access", "hive.s3.path-style-access")
+ .put("hive.s3.staging-directory", "hive.s3.staging-directory")
+ .put("hive.s3.pin-client-to-current-region", "hive.s3.pin-client-to-current-region")
+ .put("hive.s3.ssl.enabled", "hive.s3.ssl.enabled")
+ .put("hive.s3.sse.enabled", "hive.s3.sse.enabled")
+ .put("hive.s3.sse.type", "hive.s3.sse.type")
+ .put("hive.s3.sse.kms-key-id", "hive.s3.sse.kms-key-id")
+ .put("hive.s3.kms-key-id", "hive.s3.kms-key-id")
+ .put("hive.s3.encryption-materials-provider", "hive.s3.encryption-materials-provider")
+ .put("hive.s3.upload-acl-type", "hive.s3.upload-acl-type")
+ .put("hive.s3.skip-glacier-objects", "hive.s3.skip-glacier-objects")
+ .put("hive.s3.streaming.enabled", "hive.s3.streaming.enabled")
+ .put("hive.s3.streaming.part-size", "hive.s3.streaming.part-size")
+ .put("hive.s3.proxy.host", "hive.s3.proxy.host")
+ .put("hive.s3.proxy.port", "hive.s3.proxy.port")
+ .put("hive.s3.proxy.protocol", "hive.s3.proxy.protocol")
+ .put("hive.s3.proxy.non-proxy-hosts", "hive.s3.proxy.non-proxy-hosts")
+ .put("hive.s3.proxy.username", "hive.s3.proxy.username")
+ .put("hive.s3.proxy.password", "hive.s3.proxy.password")
+ .put("hive.s3.proxy.preemptive-basic-auth", "hive.s3.proxy.preemptive-basic-auth")
+ .put("hive.s3.sts.endpoint", "hive.s3.sts.endpoint")
+ .put("hive.s3.sts.region", "hive.s3.sts.region")
+
+ // Hive metastore Thrift service authentication
+ .put("hive.metastore.authentication.type", "hive.metastore.authentication.type")
+ .put(
+ "hive.metastore.thrift.impersonation.enabled",
+ "hive.metastore.thrift.impersonation.enabled")
+ .put("hive.metastore.service.principal", "hive.metastore.service.principal")
+ .put("hive.metastore.client.principal", "hive.metastore.client.principal")
+ .put("hive.metastore.client.keytab", "hive.metastore.client.keytab")
+
+ // HDFS authentication
+ .put("hive.hdfs.authentication.type", "hive.hdfs.authentication.type")
+ .put("hive.hdfs.impersonation.enabled", "hive.hdfs.impersonation.enabled")
+ .put("hive.hdfs.trino.principal", "hive.hdfs.trino.principal")
+ .put("hive.hdfs.trino.keytab", "hive.hdfs.trino.keytab")
+ .put("hive.hdfs.wire-encryption.enabled", "hive.hdfs.wire-encryption.enabled")
.build());
@Override
diff --git a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java
index 9da409ea59..dcf43967fc 100644
--- a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java
+++ b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java
@@ -19,7 +19,156 @@ import org.apache.commons.collections4.bidimap.TreeBidiMap;
public class IcebergCatalogPropertyConverter extends PropertyConverter {
private static final TreeBidiMap<String, String> TRINO_ICEBERG_TO_GRAVITINO_ICEBERG =
- new TreeBidiMap<>(new ImmutableMap.Builder<String, String>().build());
+ new TreeBidiMap<>(
+ new ImmutableMap.Builder<String, String>()
+ // General configuration
+ .put("iceberg.catalog.type", "iceberg.catalog.type")
+ .put("iceberg.file-format", "iceberg.file-format")
+ .put("iceberg.compression-codec", "iceberg.compression-codec")
+ .put("iceberg.use-file-size-from-metadata", "iceberg.use-file-size-from-metadata")
+ .put("iceberg.max-partitions-per-writer", "iceberg.max-partitions-per-writer")
+ .put("iceberg.target-max-file-size", "iceberg.target-max-file-size")
+ .put("iceberg.unique-table-location", "iceberg.unique-table-location")
+ .put(
+ "iceberg.dynamic-filtering.wait-timeout",
+ "iceberg.dynamic-filtering.wait-timeout")
+ .put(
+ "iceberg.delete-schema-locations-fallback",
+ "iceberg.delete-schema-locations-fallback")
+ .put("iceberg.minimum-assigned-split-weight", "iceberg.minimum-assigned-split-weight")
+ .put("iceberg.table-statistics-enabled", "iceberg.table-statistics-enabled")
+ .put("iceberg.extended-statistics.enabled", "iceberg.extended-statistics.enabled")
+ .put(
+ "iceberg.extended-statistics.collect-on-write",
+ "iceberg.extended-statistics.collect-on-write")
+ .put("iceberg.projection-pushdown-enabled", "iceberg.projection-pushdown-enabled")
+ .put("iceberg.hive-catalog-name", "iceberg.hive-catalog-name")
+ .put(
+ "iceberg.materialized-views.storage-schema",
+ "iceberg.materialized-views.storage-schema")
+ .put(
+ "iceberg.materialized-views.hide-storage-table",
+ "iceberg.materialized-views.hide-storage-table")
+ .put(
+ "iceberg.register-table-procedure.enabled",
+ "iceberg.register-table-procedure.enabled")
+ .put(
+ "iceberg.query-partition-filter-required",
+ "iceberg.query-partition-filter-required")
+
+ // Hive
+ .put("hive.config.resources", "hive.config.resources")
+ .put("hive.recursive-directories", "hive.recursive-directories")
+ .put("hive.ignore-absent-partitions", "hive.ignore-absent-partitions")
+ .put("hive.storage-format", "hive.storage-format")
+ .put("hive.compression-codec", "hive.compression-codec")
+ .put("hive.force-local-scheduling", "hive.force-local-scheduling")
+ .put("hive.respect-table-format", "hive.respect-table-format")
+ .put("hive.immutable-partitions", "hive.immutable-partitions")
+ .put(
+ "hive.insert-existing-partitions-behavior",
+ "hive.insert-existing-partitions-behavior")
+ .put("hive.target-max-file-size", "hive.target-max-file-size")
+ .put("hive.create-empty-bucket-files", "hive.create-empty-bucket-files")
+ .put("hive.validate-bucketing", "hive.validate-bucketing")
+ .put("hive.partition-statistics-sample-size", "hive.partition-statistics-sample-size")
+ .put("hive.max-partitions-per-writers", "hive.max-partitions-per-writers")
+ .put("hive.max-partitions-for-eager-load", "hive.max-partitions-for-eager-load")
+ .put("hive.max-partitions-per-scan", "hive.max-partitions-per-scan")
+ .put("hive.dfs.replication", "hive.dfs.replication")
+ .put("hive.security", "hive.security")
+ .put("security.config-file", "security.config-file")
+ .put("hive.non-managed-table-writes-enabled", "hive.non-managed-table-writes-enabled")
+ .put(
+ "hive.non-managed-table-creates-enabled",
+ "hive.non-managed-table-creates-enabled")
+ .put(
+ "hive.collect-column-statistics-on-write",
+ "hive.collect-column-statistics-on-write")
+ .put("hive.file-status-cache-tables", "hive.file-status-cache-tables")
+ .put(
+ "hive.file-status-cache.max-retained-size",
+ "hive.file-status-cache.max-retained-size")
+ .put("hive.file-status-cache-expire-time", "hive.file-status-cache-expire-time")
+ .put(
+ "hive.per-transaction-file-status-cache.max-retained-size",
+ "hive.per-transaction-file-status-cache.max-retained-size")
+ .put("hive.timestamp-precision", "hive.timestamp-precision")
+ .put(
+ "hive.temporary-staging-directory-enabled",
+ "hive.temporary-staging-directory-enabled")
+ .put("hive.temporary-staging-directory-path", "hive.temporary-staging-directory-path")
+ .put("hive.hive-views.enabled", "hive.hive-views.enabled")
+ .put("hive.hive-views.legacy-translation", "hive.hive-views.legacy-translation")
+ .put(
+ "hive.parallel-partitioned-bucketed-writes",
+ "hive.parallel-partitioned-bucketed-writes")
+ .put("hive.fs.new-directory-permissions", "hive.fs.new-directory-permissions")
+ .put("hive.fs.cache.max-size", "hive.fs.cache.max-size")
+ .put("hive.query-partition-filter-required", "hive.query-partition-filter-required")
+ .put("hive.table-statistics-enabled", "hive.table-statistics-enabled")
+ .put("hive.auto-purge", "hive.auto-purge")
+ .put("hive.partition-projection-enabled", "hive.partition-projection-enabled")
+ .put("hive.max-partition-drops-per-query", "hive.max-partition-drops-per-query")
+ .put("hive.single-statement-writes", "hive.single-statement-writes")
+
+ // Hive performance
+ .put("hive.max-outstanding-splits", "hive.max-outstanding-splits")
+ .put("hive.max-outstanding-splits-size", "hive.max-outstanding-splits-size")
+ .put("hive.max-splits-per-second", "hive.max-splits-per-second")
+ .put("hive.max-initial-splits", "hive.max-initial-splits")
+ .put("hive.max-initial-split-size", "hive.max-initial-split-size")
+ .put("hive.max-split-size", "hive.max-split-size")
+
+ // S3
+ .put("hive.s3.aws-access-key", "hive.s3.aws-access-key")
+ .put("hive.s3.aws-secret-key", "hive.s3.aws-secret-key")
+ .put("hive.s3.iam-role", "hive.s3.iam-role")
+ .put("hive.s3.external-id", "hive.s3.external-id")
+ .put("hive.s3.endpoint", "hive.s3.endpoint")
+ .put("hive.s3.region", "hive.s3.region")
+ .put("hive.s3.storage-class", "hive.s3.storage-class")
+ .put("hive.s3.signer-type", "hive.s3.signer-type")
+ .put("hive.s3.signer-class", "hive.s3.signer-class")
+ .put("hive.s3.path-style-access", "hive.s3.path-style-access")
+ .put("hive.s3.staging-directory", "hive.s3.staging-directory")
+ .put("hive.s3.pin-client-to-current-region", "hive.s3.pin-client-to-current-region")
+ .put("hive.s3.ssl.enabled", "hive.s3.ssl.enabled")
+ .put("hive.s3.sse.enabled", "hive.s3.sse.enabled")
+ .put("hive.s3.sse.type", "hive.s3.sse.type")
+ .put("hive.s3.sse.kms-key-id", "hive.s3.sse.kms-key-id")
+ .put("hive.s3.kms-key-id", "hive.s3.kms-key-id")
+ .put("hive.s3.encryption-materials-provider", "hive.s3.encryption-materials-provider")
+ .put("hive.s3.upload-acl-type", "hive.s3.upload-acl-type")
+ .put("hive.s3.skip-glacier-objects", "hive.s3.skip-glacier-objects")
+ .put("hive.s3.streaming.enabled", "hive.s3.streaming.enabled")
+ .put("hive.s3.streaming.part-size", "hive.s3.streaming.part-size")
+ .put("hive.s3.proxy.host", "hive.s3.proxy.host")
+ .put("hive.s3.proxy.port", "hive.s3.proxy.port")
+ .put("hive.s3.proxy.protocol", "hive.s3.proxy.protocol")
+ .put("hive.s3.proxy.non-proxy-hosts", "hive.s3.proxy.non-proxy-hosts")
+ .put("hive.s3.proxy.username", "hive.s3.proxy.username")
+ .put("hive.s3.proxy.password", "hive.s3.proxy.password")
+ .put("hive.s3.proxy.preemptive-basic-auth", "hive.s3.proxy.preemptive-basic-auth")
+ .put("hive.s3.sts.endpoint", "hive.s3.sts.endpoint")
+ .put("hive.s3.sts.region", "hive.s3.sts.region")
+
+ // Hive metastore Thrift service authentication
+ .put("hive.metastore.authentication.type", "hive.metastore.authentication.type")
+ .put(
+ "hive.metastore.thrift.impersonation.enabled",
+ "hive.metastore.thrift.impersonation.enabled")
+ .put("hive.metastore.service.principal", "hive.metastore.service.principal")
+ .put("hive.metastore.client.principal", "hive.metastore.client.principal")
+ .put("hive.metastore.client.keytab", "hive.metastore.client.keytab")
+
+ // HDFS authentication
+ .put("hive.hdfs.authentication.type", "hive.hdfs.authentication.type")
+ .put("hive.hdfs.impersonation.enabled", "hive.hdfs.impersonation.enabled")
+ .put("hive.hdfs.trino.principal", "hive.hdfs.trino.principal")
+ .put("hive.hdfs.trino.keytab", "hive.hdfs.trino.keytab")
+ .put("hive.hdfs.wire-encryption.enabled", "hive.hdfs.wire-encryption.enabled")
+ .build());
private static final Set<String> JDBC_BACKEND_REQUIRED_PROPERTIES =
Set.of("jdbc-driver", "uri", "jdbc-user", "jdbc-password");
diff --git a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/jdbc/JDBCCatalogPropertyConverter.java b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/jdbc/JDBCCatalogPropertyConverter.java
index 4e597f0928..71e318671b 100644
--- a/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/jdbc/JDBCCatalogPropertyConverter.java
+++ b/trino-connector/src/main/java/com/datastrato/gravitino/trino/connector/catalog/jdbc/JDBCCatalogPropertyConverter.java
@@ -24,8 +24,46 @@ public class JDBCCatalogPropertyConverter extends PropertyConverter {
new ImmutableMap.Builder<String, String>()
// Key is the Trino property, value is the Gravitino property
.put(JDBC_CONNECTION_URL_KEY, "jdbc-url")
+
+ // Data source authentication
.put(JDBC_CONNECTION_USER_KEY, "jdbc-user")
.put(JDBC_CONNECTION_PASSWORD_KEY, "jdbc-password")
+ .put("credential-provider.type", "credential-provider.type")
+ .put("user-credential-name", "user-credential-name")
+ .put("password-credential-name", "password-credential-name")
+ .put("connection-credential-file", "connection-credential-file")
+ .put("keystore-file-path", "keystore-file-path")
+ .put("keystore-type", "keystore-type")
+ .put("keystore-password", "keystore-password")
+ .put("keystore-user-credential-name", "keystore-user-credential-name")
+ .put("keystore-user-credential-password", "keystore-user-credential-password")
+ .put("keystore-password-credential-name", "keystore-password-credential-name")
+ .put("keystore-password-credential-password", "keystore-password-credential-password")
+
+ // General configuration properties
+ .put("case-insensitive-name-matching", "ase-insensitive-name-matching")
+ .put(
+ "case-insensitive-name-matching.cache-ttl",
+ "case-insensitive-name-matching.cache-ttl")
+ .put(
+ "case-insensitive-name-matching.config-file",
+ "case-insensitive-name-matching.config-file")
+ .put(
+ "case-insensitive-name-matching.config-file.refresh-period",
+ "case-insensitive-name-matching.config-file.refresh-period")
+ .put("metadata.cache-ttl", "metadata.cache-ttl")
+ .put("metadata.cache-missing", "metadata.cache-missing")
+ .put("metadata.schemas.cache-ttl", "metadata.schemas.cache-ttl")
+ .put("metadata.tables.cache-ttl", "metadata.tables.cache-ttl")
+ .put("metadata.statistics.cache-ttl", "metadata.statistics.cache-ttl")
+ .put("metadata.cache-maximum-size", "metadata.cache-maximum-size")
+ .put("write.batch-size", "write.batch-size")
+ .put("dynamic-filtering.enabled", "dynamic-filtering.enabled")
+ .put("dynamic-filtering.wait-timeout", "dynamic-filtering.wait-timeout")
+
+ // Performance
+ .put("join-pushdown.enabled", "join-pushdown.enabled")
+ .put("join-pushdown.strategy", "join-pushdown.strategy")
.build());
public static final Set<String> REQUIRED_PROPERTIES =