Skip to content

[#11751] test(trino-connector): Enable Iceberg MySQL JDBC integration test#11752

Open
diqiu50 wants to merge 6 commits into
apache:mainfrom
diqiu50:fix-trino-iceberg-jdbc-credentials
Open

[#11751] test(trino-connector): Enable Iceberg MySQL JDBC integration test#11752
diqiu50 wants to merge 6 commits into
apache:mainfrom
diqiu50:fix-trino-iceberg-jdbc-credentials

Conversation

@diqiu50

@diqiu50 diqiu50 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Enable the Trino connector Iceberg MySQL JDBC integration test.

Why are the changes needed?

The Iceberg MySQL JDBC test was ignored and not covered by the Trino connector integration test.

Fix: #11751

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • ./gradlew :trino-connector:trino-connector:test --tests org.apache.gravitino.trino.connector.catalog.iceberg.TestIcebergCatalogPropertyConverter -PskipITs -PskipDockerTests=true
  • ./gradlew :trino-connector:trino-connector-473-478:assemble -PskipITs -PskipDockerTests=true
  • ./trino-connector/integration-test/trino-test-tools/trino_integration_test.sh --auto=all --test_set=lakehouse-iceberg --catalog=iceberg_mysql

Copilot AI review requested due to automatic review settings June 22, 2026 07:24
@diqiu50 diqiu50 self-assigned this Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.

Enables the Iceberg MySQL JDBC integration test path by passing through Iceberg JDBC schema version configuration and preparing the MySQL backend schema needed by the JDBC catalog.

Changes:

  • Add support for forwarding jdbc-schema-version (e.g., V1) into Trino Iceberg JDBC catalog properties.
  • Extend unit test coverage to validate the new schema-version mapping.
  • Add MySQL init DDL to create the Iceberg JDBC catalog tables and update the MySQL catalog prepare SQL to include schema version.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
trino-connector/trino-connector/src/test/java/org/apache/gravitino/trino/connector/catalog/iceberg/TestIcebergCatalogPropertyConverter.java Adds assertions and input properties for jdbc-schema-version mapping.
trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java Forwards jdbc-schema-version into iceberg.jdbc-catalog.schema-version.
trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/lakehouse-iceberg/ignored/catalog_iceberg_mysql_prepare.sql Adds jdbc-schema-version to the MySQL Iceberg catalog creation SQL (currently under ignored/).
integration-test-common/docker-script/init/mysql/init.sql Creates iceberg_db and required Iceberg JDBC catalog tables in MySQL init script.

Comment thread integration-test-common/docker-script/init/mysql/init.sql Outdated
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

Code Coverage Report

Overall Project 67.23% 🟢
Files changed 72.22% 🟢

Module Coverage
aliyun 1.72% 🔴
api 46.82% 🟢
authorization-common 85.96% 🟢
aws 26.5% 🔴
azure 2.47% 🔴
catalog-common 10.4% 🔴
catalog-fileset 80.23% 🟢
catalog-glue 66.91% 🟢
catalog-hive 79.42% 🟢
catalog-jdbc-clickhouse 80.02% 🟢
catalog-jdbc-common 44.22% 🟢
catalog-jdbc-doris 80.28% 🟢
catalog-jdbc-hologres 54.03% 🟢
catalog-jdbc-mysql 79.23% 🟢
catalog-jdbc-oceanbase 80.91% 🟢
catalog-jdbc-postgresql 82.29% 🟢
catalog-jdbc-starrocks 78.51% 🟢
catalog-kafka 77.01% 🟢
catalog-lakehouse-generic 58.53% 🟢
catalog-lakehouse-hudi 79.1% 🟢
catalog-lakehouse-iceberg 85.86% 🟢
catalog-lakehouse-paimon 82.14% 🟢
catalog-model 77.72% 🟢
cli 44.51% 🟢
client-java 78.01% 🟢
common 50.17% 🟢
core 82.59% 🟢
filesystem-hadoop3 77.27% 🟢
flink 0.0% 🔴
flink-common 47.12% 🟢
flink-runtime 0.0% 🔴
gcp 14.12% 🔴
hadoop-common 10.88% 🔴
hive-metastore-common 53.77% 🟢
iceberg-common 58.15% 🟢
iceberg-rest-server 73.98% 🟢
idp-basic 85.71% 🟢
integration-test-common 0.0% 🔴
jobs 66.17% 🟢
lance-common 20.83% 🔴
lance-rest-server 60.13% 🟢
lineage 53.02% 🟢
optimizer 82.87% 🟢
optimizer-api 21.95% 🔴
server 85.96% 🟢
server-common 74.18% 🟢
spark 28.57% 🔴
spark-common 41.66% 🟢
trino-connector 40.29% +0.61% 🟢
Files
Module File Coverage
trino-connector IcebergCatalogPropertyConverter.java 72.22% 🟢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Enable Trino Iceberg MySQL JDBC integration test

2 participants