This is an automated email from the ASF dual-hosted git repository.
zykkk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4455d58c763 [fix](iceberg) Remove duplicated warehouse propert (#54525)
4455d58c763 is described below
commit 4455d58c76355a64ccd7cd411cef930e145438c2
Author: zy-kkk <[email protected]>
AuthorDate: Tue Aug 12 11:16:02 2025 +0800
[fix](iceberg) Remove duplicated warehouse propert (#54525)
`AbstractIcebergProperties` already defines the warehouse property, so
there is no need to redefine it in `IcebergRestProperties`. Also,
`iceberg.rest.warehouse` is not a standard Iceberg API name and should
be unified as `warehouse`.
---
.../datasource/property/metastore/IcebergRestProperties.java | 11 +++--------
.../property/metastore/IcebergRestPropertiesTest.java | 4 ++--
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
index c55611f47dd..f7ffac84fd0 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergRestProperties.java
@@ -58,11 +58,6 @@ public class IcebergRestProperties extends
AbstractIcebergProperties {
description = "The prefix of the iceberg rest catalog service.")
private String icebergRestPrefix = "";
- @ConnectorProperty(names = {"iceberg.rest.warehouse", "warehouse"},
- required = false,
- description = "The warehouse of the iceberg rest catalog service.")
- private String icebergRestWarehouse = "";
-
@ConnectorProperty(names = {"iceberg.rest.security.type"},
required = false,
description = "The security type of the iceberg rest catalog
service,"
@@ -258,8 +253,8 @@ public class IcebergRestProperties extends
AbstractIcebergProperties {
icebergRestCatalogProperties.put(PREFIX_PROPERTY,
icebergRestPrefix);
}
- if (Strings.isNotBlank(icebergRestWarehouse)) {
-
icebergRestCatalogProperties.put(CatalogProperties.WAREHOUSE_LOCATION,
icebergRestWarehouse);
+ if (Strings.isNotBlank(warehouse)) {
+
icebergRestCatalogProperties.put(CatalogProperties.WAREHOUSE_LOCATION,
warehouse);
}
if (isIcebergRestVendedCredentialsEnabled()) {
@@ -314,7 +309,7 @@ public class IcebergRestProperties extends
AbstractIcebergProperties {
* This method handles all storage types (HDFS, S3, MinIO, etc.) and
populates
* the fileIOProperties map and Configuration object accordingly.
*
- * @param storagePropertiesMap Map of storage properties
+ * @param storagePropertiesList Map of storage properties
* @param fileIOProperties Options map to be populated
* @param conf Configuration object to be populated (for HDFS), will be
created if null and HDFS is used
*/
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
index 1d550e061cc..e310bb8c3dc 100644
---
a/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
+++
b/fe/fe-core/src/test/java/org/apache/doris/datasource/property/metastore/IcebergRestPropertiesTest.java
@@ -32,8 +32,8 @@ public class IcebergRestPropertiesTest {
public void testBasicRestProperties() {
Map<String, String> props = new HashMap<>();
props.put("iceberg.rest.uri", "http://localhost:8080");
- props.put("iceberg.rest.warehouse", "s3://warehouse/path");
props.put("iceberg.rest.prefix", "prefix");
+ props.put("warehouse", "s3://warehouse/path");
IcebergRestProperties restProps = new IcebergRestProperties(props);
restProps.initNormalizeAndCheckProps();
@@ -209,7 +209,7 @@ public class IcebergRestPropertiesTest {
Map<String, String> props2 = new HashMap<>();
props2.put("iceberg.rest.uri", "http://localhost:8080");
- props2.put("iceberg.rest.warehouse", "s3://warehouse/path");
+ props2.put("warehouse", "s3://warehouse/path");
IcebergRestProperties restProps2 = new IcebergRestProperties(props2);
restProps2.initNormalizeAndCheckProps();
Assertions.assertEquals("s3://warehouse/path",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]