Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add lakekeeper integration test #25140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import io.trino.plugin.hive.containers.Hive3MinioDataLake;
import io.trino.plugin.hive.containers.HiveHadoop;
import io.trino.plugin.iceberg.catalog.jdbc.TestingIcebergJdbcServer;
import io.trino.plugin.iceberg.catalog.rest.TestingLakekeeperCatalog;
import io.trino.plugin.iceberg.catalog.rest.TestingPolarisCatalog;
import io.trino.plugin.iceberg.containers.NessieContainer;
import io.trino.plugin.iceberg.containers.UnityCatalogContainer;
Expand Down Expand Up @@ -226,6 +227,41 @@ public static void main(String[] args)
}
}

public static final class IcebergLakekeeperQueryRunnerMain
{
private IcebergLakekeeperQueryRunnerMain() {}

public static void main(String[] args)
throws Exception
{
TestingLakekeeperCatalog lakekeeperCatalog = new TestingLakekeeperCatalog();
Logger log = Logger.get(IcebergLakekeeperQueryRunnerMain.class);
try {
@SuppressWarnings("resource")
QueryRunner queryRunner = icebergQueryRunnerMainBuilder()
.addIcebergProperty("iceberg.catalog.type", "rest")
.addIcebergProperty("iceberg.rest-catalog.uri", lakekeeperCatalog.restUri() + "/catalog")
.addIcebergProperty("iceberg.rest-catalog.warehouse", TestingLakekeeperCatalog.DEFAULT_WAREHOUSE)
.addIcebergProperty("iceberg.rest-catalog.vended-credentials-enabled", "true")
.addIcebergProperty("s3.endpoint", lakekeeperCatalog.externalMinioAddress())
.addIcebergProperty("fs.native-s3.enabled", "true")
.addIcebergProperty("s3.region", "dummy")
.addIcebergProperty("s3.path-style-access", "true")
.setInitialTables(TpchTable.getTables())
.build();
log.info("======== SERVER STARTED ========");
log.info("\n====\n%s\n====", queryRunner.getCoordinator().getBaseUrl());
}
catch (Exception e) {
log.error("Error starting server: \n%s", lakekeeperCatalog.getLogs());
throw e;
}
finally {
lakekeeperCatalog.close();
}
}
}

public static final class IcebergPolarisQueryRunnerMain
{
private IcebergPolarisQueryRunnerMain() {}
Expand Down
Loading
Loading