From 37c99428bbc23ceb32e818a0c69ca59c52d29caa Mon Sep 17 00:00:00 2001 From: fanng Date: Tue, 15 Oct 2024 17:13:51 +0800 Subject: [PATCH] fix comment --- .../iceberg/common/ops/IcebergCatalogWrapper.java | 5 ++++- .../iceberg/service/rest/IcebergTableOperations.java | 7 +++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java b/iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java index 4d809147342..3660b06f4c9 100644 --- a/iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java +++ b/iceberg/iceberg-common/src/main/java/org/apache/gravitino/iceberg/common/ops/IcebergCatalogWrapper.java @@ -372,7 +372,10 @@ private Map vendCredentials(String location) { configs.putAll(CredentialUtils.toIcebergProperties(credential)); return configs; } else { - throw new IllegalArgumentException("Credential vending is not enabled, please set " + Credential.CREDENTIAL_TYPE + " to proper values"); + throw new IllegalArgumentException( + "Credential vending is not enabled, please set " + + Credential.CREDENTIAL_TYPE + + " to proper values"); } } diff --git a/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java index 0246115462e..e77c68c3abf 100644 --- a/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java +++ b/iceberg/iceberg-rest-server/src/main/java/org/apache/gravitino/iceberg/service/rest/IcebergTableOperations.java @@ -248,12 +248,11 @@ private boolean isCredentialVending(String accessDelegation) { if ("vended-credentials".equalsIgnoreCase(accessDelegation)) { return true; } else if ("remote-signing".equalsIgnoreCase(accessDelegation)) { - throw new UnsupportedOperationException("Gravitino IcebergRESTServer doesn't support remote signing"); + throw new UnsupportedOperationException( + "Gravitino IcebergRESTServer doesn't support remote signing"); } else { throw new IllegalArgumentException( - X_ICEBERG_ACCESS_DELEGATION - + ": " - + accessDelegation + " is illegal"); + X_ICEBERG_ACCESS_DELEGATION + ": " + accessDelegation + " is illegal"); } } }