We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f5bae0 commit 3b049fbCopy full SHA for 3b049fb
src/connector/src/connector_common/connection.rs
@@ -135,6 +135,10 @@ pub struct IcebergConnection {
135
/// Path of iceberg warehouse, only applicable in storage catalog.
136
#[serde(rename = "warehouse.path")]
137
pub warehouse_path: Option<String>,
138
+ /// Catalog id, can be omitted for storage catalog or when
139
+ /// caller's AWS account ID matches glue id
140
+ #[serde(rename = "glue.id")]
141
+ pub glue_id: Option<String>,
142
/// Catalog name, can be omitted for storage catalog, but
143
/// must be set for other catalogs.
144
#[serde(rename = "catalog.name")]
@@ -255,6 +259,7 @@ impl Connection for IcebergConnection {
255
259
secret_key: self.secret_key.clone(),
256
260
gcs_credential: self.gcs_credential.clone(),
257
261
warehouse_path: self.warehouse_path.clone(),
262
+ glue_id: self.glue_id.clone(),
258
263
catalog_name: self.catalog_name.clone(),
264
catalog_uri: self.catalog_uri.clone(),
265
credential: self.credential.clone(),
src/connector/src/connector_common/iceberg/mod.rs
@@ -57,6 +57,10 @@ pub struct IcebergCommon {
57
58
59
60
+ /// AWS Client id, can be omitted for storage catalog or when
61
62
63
64
65
66
@@ -274,6 +278,10 @@ impl IcebergCommon {
274
278
format!("https://glue.{}.amazonaws.com", region),
275
279
);
276
280
}
281
+
282
+ if let Some(glue_id) = self.glue_id.as_deref() {
283
+ java_catalog_configs.insert("glue.id".to_owned(), glue_id.to_owned());
284
+ }
277
285
286
_ => {}
287
src/connector/src/sink/iceberg/mod.rs
@@ -1432,6 +1432,7 @@ mod test {
1432
secret_key: Some("hummockadmin".to_owned()),
1433
gcs_credential: None,
1434
catalog_type: Some("jdbc".to_owned()),
1435
+ glue_id: None,
1436
catalog_name: Some("demo".to_owned()),
1437
database_name: Some("demo_db".to_owned()),
1438
table_name: "demo_table".to_owned(),
src/connector/with_options_sink.yaml
@@ -447,6 +447,12 @@ IcebergConfig:
447
field_type: String
448
comments: Path of iceberg warehouse, only applicable in storage catalog.
449
required: false
450
+ - name: glue.id
451
+ field_type: String
452
+ comments: |-
453
+ Catalog name, can be omitted for storage catalog or when
454
+ caller's AWS account ID matches glue id
455
+ required: false
456
- name: catalog.name
457
458
comments: |-
src/connector/with_options_source.yaml
@@ -103,6 +103,12 @@ IcebergProperties:
103
104
105
106
107
108
109
110
111
112
113
114
0 commit comments