From 0c70f0a5b43800b47500d179b6f601139a784c56 Mon Sep 17 00:00:00 2001 From: Dylan Chen Date: Wed, 8 Jan 2025 16:22:24 +0800 Subject: [PATCH] change iceberg glue catalog default implemantation to java --- src/connector/src/connector_common/iceberg/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/connector/src/connector_common/iceberg/mod.rs b/src/connector/src/connector_common/iceberg/mod.rs index ff53d80e89598..2ed54b7afcadc 100644 --- a/src/connector/src/connector_common/iceberg/mod.rs +++ b/src/connector/src/connector_common/iceberg/mod.rs @@ -387,7 +387,7 @@ impl IcebergCommon { let catalog = iceberg_catalog_rest::RestCatalog::new(config); Ok(Arc::new(catalog)) } - "glue" => { + "glue_rest" => { let mut iceberg_configs = HashMap::new(); // glue if let Some(region) = &self.region { @@ -427,7 +427,10 @@ impl IcebergCommon { Ok(Arc::new(catalog)) } catalog_type - if catalog_type == "hive" || catalog_type == "jdbc" || catalog_type == "rest" => + if catalog_type == "hive" + || catalog_type == "jdbc" + || catalog_type == "rest" + || catalog_type == "glue" => { // Create java catalog let (file_io_props, java_catalog_props) = @@ -436,6 +439,7 @@ impl IcebergCommon { "hive" => "org.apache.iceberg.hive.HiveCatalog", "jdbc" => "org.apache.iceberg.jdbc.JdbcCatalog", "rest" => "org.apache.iceberg.rest.RESTCatalog", + "glue" => "org.apache.iceberg.aws.glue.GlueCatalog", _ => unreachable!(), };