Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] improvement: change copyright information of Iceberg related class (#715)

FANNG2223a9931bb4
diff --git a/LICENSE b/LICENSE
index 46c41a62f4..f5ef35d07b 100644
--- a/LICENSE
+++ b/LICENSE
@@ -215,21 +215,26 @@
./api/src/main/java/com/datastrato/gravitino/rel/TableChange.java
Apache Iceberg
- ./catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveClientPool.java
- ./catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynConstructors.java
- ./catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynFields.java
- ./catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynMethods.java
- ./catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/MiniHiveMetastore.java
- ./catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/MiniHiveMetastoreService.java
- ./catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/ScriptRunner.java
+ ./api/src/main/java/com/datastrato/gravitino/exceptions/RESTException.java
+ ./catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveClientPool.java
+ ./catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynConstructors.java
+ ./catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynFields.java
+ ./catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/dyn/DynMethods.java
+ ./catalogs/catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/MiniHiveMetastore.java
+ ./catalogs/catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/MiniHiveMetastoreService.java
+ ./catalogs/catalog-hive/src/test/java/com/datastrato/gravitino/catalog/hive/miniHMS/ScriptRunner.java
+ ./catalogs/catalog-lakehouse-iceberg/src/main/java/com/datastrato/gravitino/catalog/lakehouse/iceberg/web/IcebergExceptionMapper.java
./client-java/src/main/java/com/datastrato/gravitino/client/HTTPClient.java
./client-java/src/main/java/com/datastrato/gravitino/client/RESTClient.java
./client-java/src/test/java/com/datastrato/gravitino/client/TestHTTPClient.java
+ ./common/src/main/java/com/datastrato/gravitino/rest/RESTUtils.java
+ ./common/src/main/java/com/datastrato/gravitino/rest/RESTMessage.java
./core/src/main/java/com/datastrato/gravitino/util/ClientPool.java
./core/src/main/java/com/datastrato/gravitino/util/ClientPoolImpl.java
+
Apache Hive
- ./catalog-hive/src/test/resources/hive-schema-3.1.0.derby.sql
+ ./catalogs/catalog-hive/src/test/resources/hive-schema-3.1.0.derby.sql
Apache Zeppelin
./integration-test/src/test/java/com/datastrato/gravitino/integration/util/CommandExecutor.java
diff --git a/api/src/main/java/com/datastrato/gravitino/exceptions/RESTException.java b/api/src/main/java/com/datastrato/gravitino/exceptions/RESTException.java
index 4f8715614d..6708a37dfa 100644
--- a/api/src/main/java/com/datastrato/gravitino/exceptions/RESTException.java
+++ b/api/src/main/java/com/datastrato/gravitino/exceptions/RESTException.java
@@ -1,11 +1,27 @@
/*
- * Copyright 2023 Datastrato.
- * This software is licensed under the Apache License version 2.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package com.datastrato.gravitino.exceptions;
import com.google.errorprone.annotations.FormatMethod;
+// Referred from Apache Iceberg's RESTException implementation
+// api/src/main/java/org/apache/iceberg/exceptions/RESTException.java
public class RESTException extends RuntimeException {
@FormatMethod
public RESTException(String message, Object... args) {
diff --git a/catalogs/catalog-lakehouse-iceberg/src/main/java/com/datastrato/gravitino/catalog/lakehouse/iceberg/web/IcebergExceptionMapper.java b/catalogs/catalog-lakehouse-iceberg/src/main/java/com/datastrato/gravitino/catalog/lakehouse/iceberg/web/IcebergExceptionMapper.java
index bc4b6e24ba..3e99556322 100644
--- a/catalogs/catalog-lakehouse-iceberg/src/main/java/com/datastrato/gravitino/catalog/lakehouse/iceberg/web/IcebergExceptionMapper.java
+++ b/catalogs/catalog-lakehouse-iceberg/src/main/java/com/datastrato/gravitino/catalog/lakehouse/iceberg/web/IcebergExceptionMapper.java
@@ -1,6 +1,20 @@
/*
- * Copyright 2023 Datastrato.
- * This software is licensed under the Apache License version 2.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package com.datastrato.gravitino.catalog.lakehouse.iceberg.web;
@@ -26,6 +40,8 @@ import org.apache.iceberg.exceptions.ValidationException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+// Referred from Apache Iceberg's EXCEPTION_ERROR_CODES implementation
+// core/src/test/java/org/apache/iceberg/rest/RESTCatalogAdapter.java
@Provider
public class IcebergExceptionMapper implements ExceptionMapper<Exception> {
diff --git a/common/src/main/java/com/datastrato/gravitino/rest/RESTMessage.java b/common/src/main/java/com/datastrato/gravitino/rest/RESTMessage.java
index ade27c1c8d..6d20a441cd 100644
--- a/common/src/main/java/com/datastrato/gravitino/rest/RESTMessage.java
+++ b/common/src/main/java/com/datastrato/gravitino/rest/RESTMessage.java
@@ -1,9 +1,25 @@
/*
- * Copyright 2023 Datastrato.
- * This software is licensed under the Apache License version 2.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package com.datastrato.gravitino.rest;
+// Referred from Apache Iceberg's RESTMessage implementation
+// core/src/main/java/org/apache/iceberg/rest/RESTMessage.java
public interface RESTMessage {
/**
diff --git a/common/src/main/java/com/datastrato/gravitino/rest/RESTUtils.java b/common/src/main/java/com/datastrato/gravitino/rest/RESTUtils.java
index aa0fccce2f..a481df211f 100644
--- a/common/src/main/java/com/datastrato/gravitino/rest/RESTUtils.java
+++ b/common/src/main/java/com/datastrato/gravitino/rest/RESTUtils.java
@@ -1,6 +1,20 @@
/*
- * Copyright 2023 Datastrato.
- * This software is licensed under the Apache License version 2.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
*/
package com.datastrato.gravitino.rest;
@@ -18,7 +32,12 @@ import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Random;
-/** Utility class for working with REST related operations. */
+/*
+ * Referred from Apache Iceberg's RESTUtil implementation
+ * core/src/main/java/org/apache/iceberg/rest/RESTUtil.java
+ *
+ * Utility class for working with REST related operations.
+ */
public class RESTUtils {
private static final Joiner.MapJoiner FORM_JOINER = Joiner.on("&").withKeyValueSeparator("=");