From 4a590f8c3889c1ee5f9b9260944d58d75c6bb99a Mon Sep 17 00:00:00 2001 From: RickyMa Date: Fri, 26 Jul 2024 20:55:46 +0800 Subject: [PATCH] [MINOR] fix: Correct some typos and grammar issues (#4282) ### What changes were proposed in this pull request? Correct some typos and grammar issues. ### Why are the changes needed? Better code readability & maintainability. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Existing UTs. --- .../main/java/org/apache/gravitino/authorization/User.java | 2 +- .../main/java/org/apache/gravitino/rel/TableCatalog.java | 2 +- .../gravitino/rel/expressions/transforms/Transforms.java | 4 ++-- .../main/java/org/apache/gravitino/rel/indexes/Indexes.java | 2 +- catalogs/catalog-common/build.gradle.kts | 2 +- .../org/apache/gravitino/catalog/hadoop/HadoopCatalog.java | 4 ++-- .../catalog/mysql/integration/test/CatalogMysqlIT.java | 2 +- catalogs/catalog-lakehouse-iceberg/build.gradle.kts | 2 +- clients/client-java/build.gradle.kts | 2 +- .../java/org/apache/gravitino/client/GravitinoClient.java | 2 +- .../org/apache/gravitino/dto/authorization/UserDTO.java | 2 +- .../apache/gravitino/dto/rel/expressions/LiteralDTO.java | 2 +- .../org/apache/gravitino/dto/responses/ErrorResponse.java | 4 ++-- .../java/org/apache/gravitino/dto/util/DTOConverters.java | 2 +- .../src/main/java/org/apache/gravitino/json/JsonUtils.java | 2 +- .../src/main/java/org/apache/gravitino/rest/RESTUtils.java | 6 +++--- conf/gravitino-iceberg-rest-server.conf.template | 2 +- conf/gravitino.conf.template | 2 +- .../gravitino/storage/kv/TransactionalKvBackendImpl.java | 2 +- .../storage/relational/service/TestGroupMetaService.java | 2 +- .../storage/relational/service/TestUserMetaService.java | 2 +- docs/glossary.md | 2 +- docs/jdbc-doris-catalog.md | 2 +- docs/manage-table-partition-using-gravitino.md | 2 +- docs/security.md | 2 +- docs/table-partitioning-bucketing-sort-order-indexes.md | 2 +- .../flink/connector/hive/GravitinoHiveCatalog.java | 4 ++-- .../gravitino/flink/connector/utils/FactoryUtils.java | 2 +- .../apache/gravitino/integration/test/util/ProcessData.java | 2 +- .../apache/gravitino/server/web/OverwriteDefaultConfig.java | 2 +- .../integration/test/iceberg/SparkIcebergCatalogIT.java | 2 +- .../trino/connector/util/json/TypeDeserializer.java | 2 +- web/README.md | 2 +- 33 files changed, 39 insertions(+), 39 deletions(-) diff --git a/api/src/main/java/org/apache/gravitino/authorization/User.java b/api/src/main/java/org/apache/gravitino/authorization/User.java index 4541a06bc0d..ee1dbfa1db8 100644 --- a/api/src/main/java/org/apache/gravitino/authorization/User.java +++ b/api/src/main/java/org/apache/gravitino/authorization/User.java @@ -28,7 +28,7 @@ public interface User extends Auditable { /** * The name of the user. It's the identifier of User. It must be unique. Usually the name comes - * from a external user management system like LDAP, IAM and so on. + * from an external user management system like LDAP, IAM and so on. * * @return The name of the user. */ diff --git a/api/src/main/java/org/apache/gravitino/rel/TableCatalog.java b/api/src/main/java/org/apache/gravitino/rel/TableCatalog.java index 923eb4f6cda..5a82d38bc76 100644 --- a/api/src/main/java/org/apache/gravitino/rel/TableCatalog.java +++ b/api/src/main/java/org/apache/gravitino/rel/TableCatalog.java @@ -202,7 +202,7 @@ default Table createTable( * @param distribution The distribution of the table * @param sortOrders The sort orders of the table * @param partitions The table partitioning. - * @return Fhe created table metadata. + * @return The created table metadata. * @throws NoSuchSchemaException If the schema does not exist. * @throws TableAlreadyExistsException If the table already exists. */ diff --git a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java index 9ff6fe97243..73cb33b553b 100644 --- a/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java +++ b/api/src/main/java/org/apache/gravitino/rel/expressions/transforms/Transforms.java @@ -293,10 +293,10 @@ private static DayTransform day(NamedReference ref) { } /** - * Create a hour transform that applies a function to the input value. + * Create an hour transform that applies a function to the input value. * * @param ref The reference to transform. - * @return A hour transform. + * @return An hour transform. */ private static HourTransform hour(NamedReference ref) { return new HourTransform(ref); diff --git a/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java b/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java index eaf4dcd8bed..33b8f5cd818 100644 --- a/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java +++ b/api/src/main/java/org/apache/gravitino/rel/indexes/Indexes.java @@ -115,7 +115,7 @@ public static Builder builder() { return new Builder(); } - /** Builder to create a index. */ + /** Builder to create an index. */ public static class Builder { /** The type of the index. */ diff --git a/catalogs/catalog-common/build.gradle.kts b/catalogs/catalog-common/build.gradle.kts index 421e8a229cc..5bfe52af5ee 100644 --- a/catalogs/catalog-common/build.gradle.kts +++ b/catalogs/catalog-common/build.gradle.kts @@ -21,7 +21,7 @@ plugins { id("java") } -// try avoid add extra dependencies because it is used by catalogs and connectors. +// try to avoid adding extra dependencies because it is used by catalogs and connectors. dependencies { implementation(libs.slf4j.api) } diff --git a/catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalog.java b/catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalog.java index 8774705cf82..193219ab8d2 100644 --- a/catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalog.java +++ b/catalogs/catalog-hadoop/src/main/java/org/apache/gravitino/catalog/hadoop/HadoopCatalog.java @@ -26,8 +26,8 @@ /** * Hadoop catalog is a fileset catalog that can manage filesets on the Hadoop Compatible File - * Systems, like Local, HDFS, S3, ADLS, etc, using the Hadoop FileSystem API. It can manage filesets - * from different Hadoop Compatible File Systems in the same catalog. + * Systems, like Local, HDFS, S3, ADLS, etc., using the Hadoop FileSystem API. It can manage + * filesets from different Hadoop Compatible File Systems in the same catalog. */ public class HadoopCatalog extends BaseCatalog { diff --git a/catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java b/catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java index fe394528c55..e1cae77e0c6 100644 --- a/catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java +++ b/catalogs/catalog-jdbc-mysql/src/test/java/org/apache/gravitino/catalog/mysql/integration/test/CatalogMysqlIT.java @@ -1774,7 +1774,7 @@ void testAddColumnAutoIncrement() { new SortOrder[0], Indexes.EMPTY_INDEXES); - // Test add auto increment ,but not insert index. will failed. + // Test add auto increment ,but not insert index. will fail. RuntimeException runtimeException = assertThrows( RuntimeException.class, diff --git a/catalogs/catalog-lakehouse-iceberg/build.gradle.kts b/catalogs/catalog-lakehouse-iceberg/build.gradle.kts index 5f9aa02fcd9..154cbc65a7d 100644 --- a/catalogs/catalog-lakehouse-iceberg/build.gradle.kts +++ b/catalogs/catalog-lakehouse-iceberg/build.gradle.kts @@ -81,7 +81,7 @@ dependencies { testImplementation(libs.junit.jupiter.api) testImplementation(libs.junit.jupiter.params) testImplementation(libs.mockito.core) - // For test TestMultipleJDBCLoad, it was depended on testcontainers.mysql and testcontainers.postgresql) + // For test TestMultipleJDBCLoad, it was depended on testcontainers.mysql and testcontainers.postgresql testImplementation(libs.mysql.driver) testImplementation(libs.postgresql.driver) diff --git a/clients/client-java/build.gradle.kts b/clients/client-java/build.gradle.kts index 4f38e3c3733..a4f94997099 100644 --- a/clients/client-java/build.gradle.kts +++ b/clients/client-java/build.gradle.kts @@ -27,7 +27,7 @@ dependencies { implementation(project(":common")) implementation(libs.protobuf.java.util) { exclude("com.google.guava", "guava") - .because("Brings in Guava for Andriod, which we don't want (and breaks multimaps).") + .because("Brings in Guava for Android, which we don't want (and breaks multimaps).") } implementation(libs.jackson.databind) implementation(libs.jackson.annotations) diff --git a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoClient.java b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoClient.java index 5a233ee1167..a66987f66ec 100644 --- a/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoClient.java +++ b/clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoClient.java @@ -34,7 +34,7 @@ import org.apache.gravitino.tag.TagOperations; /** - * Apache Gravitino Client for an user to interact with the Gravitino API, allowing the client to + * Apache Gravitino Client for a user to interact with the Gravitino API, allowing the client to * list, load, create, and alter Catalog. * *

It uses an underlying {@link RESTClient} to send HTTP requests and receive responses from the diff --git a/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java b/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java index 7370cd08834..a8894c94990 100644 --- a/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java +++ b/common/src/main/java/org/apache/gravitino/dto/authorization/UserDTO.java @@ -78,7 +78,7 @@ public Audit auditInfo() { } /** - * Creates a new Builder for constructing an User DTO. + * Creates a new Builder for constructing a User DTO. * * @return A new Builder instance. */ diff --git a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java index a949a50be3b..ae74430e20a 100644 --- a/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java +++ b/common/src/main/java/org/apache/gravitino/dto/rel/expressions/LiteralDTO.java @@ -27,7 +27,7 @@ @EqualsAndHashCode public class LiteralDTO implements Literal, FunctionArg { - /** A instance of LiteralDTO with a value of "NULL" and a data type of Types.NullType.get(). */ + /** An instance of LiteralDTO with a value of "NULL" and a data type of Types.NullType.get(). */ public static final LiteralDTO NULL = new LiteralDTO("NULL", Types.NullType.get()); private final String value; diff --git a/common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java b/common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java index c4706e0ee8d..f38fabc81b5 100644 --- a/common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java +++ b/common/src/main/java/org/apache/gravitino/dto/responses/ErrorResponse.java @@ -225,7 +225,7 @@ public static ErrorResponse alreadyExists(String type, String message, Throwable } /** - * Create a new non empty error instance of {@link ErrorResponse}. + * Create a new non-empty error instance of {@link ErrorResponse}. * * @param type The type of the error. * @param message The message of the error. @@ -236,7 +236,7 @@ public static ErrorResponse nonEmpty(String type, String message) { } /** - * Create a new non empty error instance of {@link ErrorResponse}. + * Create a new non-empty error instance of {@link ErrorResponse}. * * @param type The type of the error. * @param message The message of the error. diff --git a/common/src/main/java/org/apache/gravitino/dto/util/DTOConverters.java b/common/src/main/java/org/apache/gravitino/dto/util/DTOConverters.java index ba99d527fd1..9588fae8b22 100644 --- a/common/src/main/java/org/apache/gravitino/dto/util/DTOConverters.java +++ b/common/src/main/java/org/apache/gravitino/dto/util/DTOConverters.java @@ -504,7 +504,7 @@ public static TagDTO toDTO(Tag tag, Optional inherited) { } /** - * Converts a Expression to an FunctionArg DTO. + * Converts an Expression to an FunctionArg DTO. * * @param expression The expression to be converted. * @return The expression DTO. diff --git a/common/src/main/java/org/apache/gravitino/json/JsonUtils.java b/common/src/main/java/org/apache/gravitino/json/JsonUtils.java index b3f81cb67bb..ce80965b6a2 100644 --- a/common/src/main/java/org/apache/gravitino/json/JsonUtils.java +++ b/common/src/main/java/org/apache/gravitino/json/JsonUtils.java @@ -343,7 +343,7 @@ private static String[] getStringArray(ArrayNode node) { } /** - * Get a int value from a JSON node property. + * Get an int value from a JSON node property. * * @param property The property name. * @param node The JSON node. diff --git a/common/src/main/java/org/apache/gravitino/rest/RESTUtils.java b/common/src/main/java/org/apache/gravitino/rest/RESTUtils.java index d59a291d1c8..4c25cbfd4d1 100644 --- a/common/src/main/java/org/apache/gravitino/rest/RESTUtils.java +++ b/common/src/main/java/org/apache/gravitino/rest/RESTUtils.java @@ -65,7 +65,7 @@ public static String stripTrailingSlash(String path) { } /** - * Encode a map of form data into an URL encoded string. + * Encode a map of form data into a URL encoded string. * * @param formData The form data to encode. * @return The URL encoded form data string. @@ -79,7 +79,7 @@ public static String encodeFormData(Map formData) { } /** - * Decode an URL encoded form data string into a map. + * Decode a URL encoded form data string into a map. * * @param formString The URL encoded form data string. * @return The decoded form data map. @@ -110,7 +110,7 @@ public static String encodeString(String toEncode) { } /** - * Decode an URL encoded string. + * Decode a URL encoded string. * * @param encoded The URL encoded string to decode. * @return The decoded string. diff --git a/conf/gravitino-iceberg-rest-server.conf.template b/conf/gravitino-iceberg-rest-server.conf.template index 64efda1e7b7..ed3f8916b53 100644 --- a/conf/gravitino-iceberg-rest-server.conf.template +++ b/conf/gravitino-iceberg-rest-server.conf.template @@ -41,7 +41,7 @@ gravitino.iceberg-rest.requestHeaderSize = 131072 gravitino.iceberg-rest.responseHeaderSize = 131072 # THE CONFIGURATION FOR Iceberg catalog backend -# The Iceberg catalog backend, it's recommanded to change to hive or jdbc +# The Iceberg catalog backend, it's recommended to change to hive or jdbc gravitino.iceberg-rest.catalog-backend = memory # The warehouse directory of Iceberg catalog gravitino.iceberg-rest.warehouse = /tmp/ diff --git a/conf/gravitino.conf.template b/conf/gravitino.conf.template index 450a3033b49..0894b7ab5d7 100644 --- a/conf/gravitino.conf.template +++ b/conf/gravitino.conf.template @@ -68,7 +68,7 @@ gravitino.iceberg-rest.classpath = iceberg-rest-server/libs, iceberg-rest-server gravitino.iceberg-rest.host = 0.0.0.0 # Iceberg REST service http port gravitino.iceberg-rest.httpPort = 9001 -# The backend Iceberg catalog for Iceberg REST service, it's recommanded to change to hive or jdbc +# The backend Iceberg catalog for Iceberg REST service, it's recommended to change to hive or jdbc gravitino.iceberg-rest.catalog-backend = memory # The warehouse directory of Iceberg catalog for Iceberg REST service gravitino.iceberg-rest.warehouse = /tmp/ diff --git a/core/src/main/java/org/apache/gravitino/storage/kv/TransactionalKvBackendImpl.java b/core/src/main/java/org/apache/gravitino/storage/kv/TransactionalKvBackendImpl.java index 1ad301c95b4..8e3f44b129d 100644 --- a/core/src/main/java/org/apache/gravitino/storage/kv/TransactionalKvBackendImpl.java +++ b/core/src/main/java/org/apache/gravitino/storage/kv/TransactionalKvBackendImpl.java @@ -205,7 +205,7 @@ public boolean deleteRange(KvRange kvRange) throws IOException { public List> scan(KvRange scanRange) throws IOException { // Why we need to change the end key? Because we use the transaction id to construct a row key // Assuming the end key is 'a' and the value of endInclusive is true, if we want to scan the - // value of key a, then we need to change the end key to 'b' and set the value of endInclusive + // value of key 'a', then we need to change the end key to 'b' and set the value of endInclusive // to false. byte[] end = scanRange.getEnd(); boolean endInclude = scanRange.isEndInclusive(); diff --git a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestGroupMetaService.java b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestGroupMetaService.java index bd0aaa82340..240f6298ee1 100644 --- a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestGroupMetaService.java +++ b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestGroupMetaService.java @@ -229,7 +229,7 @@ void insertGroup() throws IOException { Sets.newHashSet(role1.name(), role2.name()), Sets.newHashSet(actualOverwriteGroup2.roleNames())); - // insert overwrite user with 1 roles + // insert overwrite user with 1 role RoleEntity role3 = createRoleEntity( RandomIdGenerator.INSTANCE.nextId(), diff --git a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestUserMetaService.java b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestUserMetaService.java index 4f283b60391..1834ed16f5e 100644 --- a/core/src/test/java/org/apache/gravitino/storage/relational/service/TestUserMetaService.java +++ b/core/src/test/java/org/apache/gravitino/storage/relational/service/TestUserMetaService.java @@ -228,7 +228,7 @@ void insertUser() throws IOException { Sets.newHashSet(role1.name(), role2.name()), Sets.newHashSet(actualOverwriteUser2.roleNames())); - // insert overwrite user with 1 roles + // insert overwrite user with 1 role RoleEntity role3 = createRoleEntity( RandomIdGenerator.INSTANCE.nextId(), diff --git a/docs/glossary.md b/docs/glossary.md index 63cc6c9c3bd..22002168a14 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -290,7 +290,7 @@ license: "This software is licensed under the Apache License version 2." ## Public key -- A openly shared key used for verification, encryption, or other operations intended for public knowledge. +- An openly shared key used for verification, encryption, or other operations intended for public knowledge. ## Representational State Transfer (REST) diff --git a/docs/jdbc-doris-catalog.md b/docs/jdbc-doris-catalog.md index a3c6abd689e..9ea70362a2d 100644 --- a/docs/jdbc-doris-catalog.md +++ b/docs/jdbc-doris-catalog.md @@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem'; ## Introduction -Apache Gravitino provides the ability to manage [Apache Doris](https://doris.apache.org/) metadata through JDBC connection.. +Apache Gravitino provides the ability to manage [Apache Doris](https://doris.apache.org/) metadata through JDBC connection. :::caution Gravitino saves some system information in schema and table comments, like diff --git a/docs/manage-table-partition-using-gravitino.md b/docs/manage-table-partition-using-gravitino.md index 29e84b6cdf6..8936e5e3a0d 100644 --- a/docs/manage-table-partition-using-gravitino.md +++ b/docs/manage-table-partition-using-gravitino.md @@ -207,7 +207,7 @@ Each list in the lists must have the same length. The values in each list must c You can add a partition to a partitioned table by sending a `POST` request to the `/api/metalakes/{metalake_name}/catalogs/{catalog_name}/schemas/{schema_name}/tables/{partitioned_table_name}/partitions` endpoint or by using the Gravitino Java client. -The following is an example of adding a identity partition to a Hive partitioned table: +The following is an example of adding an identity partition to a Hive partitioned table: diff --git a/docs/security.md b/docs/security.md index 73f5cceba53..bf12a62d058 100644 --- a/docs/security.md +++ b/docs/security.md @@ -223,7 +223,7 @@ Refer to the "Additional JSSE Standard Names" section of the [Java security guid ### Example -You can follow the steps to set up a HTTPS server. +You can follow the steps to set up an HTTPS server. 1. Prerequisite diff --git a/docs/table-partitioning-bucketing-sort-order-indexes.md b/docs/table-partitioning-bucketing-sort-order-indexes.md index f0ca28b5caf..1e744b564e1 100644 --- a/docs/table-partitioning-bucketing-sort-order-indexes.md +++ b/docs/table-partitioning-bucketing-sort-order-indexes.md @@ -272,7 +272,7 @@ Indexes.of(IndexType.PRIMARY_KEY, "PRIMARY", new String[][]{{"col_1"}, {"col_2"} -The following is an example of creating a index table: +The following is an example of creating an index table: diff --git a/flink-connector/src/main/java/org/apache/gravitino/flink/connector/hive/GravitinoHiveCatalog.java b/flink-connector/src/main/java/org/apache/gravitino/flink/connector/hive/GravitinoHiveCatalog.java index c93c68e13b9..b4754596858 100644 --- a/flink-connector/src/main/java/org/apache/gravitino/flink/connector/hive/GravitinoHiveCatalog.java +++ b/flink-connector/src/main/java/org/apache/gravitino/flink/connector/hive/GravitinoHiveCatalog.java @@ -31,8 +31,8 @@ import org.apache.hadoop.hive.conf.HiveConf; /** - * The GravitinoHiveCatalog class is a implementation of the BaseCatalog class that is used to proxy - * the HiveCatalog class. + * The GravitinoHiveCatalog class is an implementation of the BaseCatalog class that is used to + * proxy the HiveCatalog class. */ public class GravitinoHiveCatalog extends BaseCatalog { diff --git a/flink-connector/src/main/java/org/apache/gravitino/flink/connector/utils/FactoryUtils.java b/flink-connector/src/main/java/org/apache/gravitino/flink/connector/utils/FactoryUtils.java index 8fd0b5d653d..4b483749a60 100644 --- a/flink-connector/src/main/java/org/apache/gravitino/flink/connector/utils/FactoryUtils.java +++ b/flink-connector/src/main/java/org/apache/gravitino/flink/connector/utils/FactoryUtils.java @@ -94,7 +94,7 @@ private static void ignoreUnconsumedKeys( } /** - * Creates a utility that helps validating options for a {@link CatalogFactory}. + * Creates a utility that helps to validate options for a {@link CatalogFactory}. * *

Note: This utility checks for left-over options in the final step. */ diff --git a/integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/ProcessData.java b/integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/ProcessData.java index cae25316d08..442e2cc5fd8 100644 --- a/integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/ProcessData.java +++ b/integration-test-common/src/test/java/org/apache/gravitino/integration/test/util/ProcessData.java @@ -221,7 +221,7 @@ private void buildOutputAndErrorStreamData(boolean mergeStreams) throws IOExcept sbInStream.append(tempSB); if (tempSB.length() > 0) { - // set flag to know that we read something and there may be moire data, even if process + // set flag to know that we read something and there may be more data, even if process // already exited outputProduced = true; } diff --git a/server-common/src/main/java/org/apache/gravitino/server/web/OverwriteDefaultConfig.java b/server-common/src/main/java/org/apache/gravitino/server/web/OverwriteDefaultConfig.java index dac45c4fbf6..98876b80598 100644 --- a/server-common/src/main/java/org/apache/gravitino/server/web/OverwriteDefaultConfig.java +++ b/server-common/src/main/java/org/apache/gravitino/server/web/OverwriteDefaultConfig.java @@ -26,7 +26,7 @@ public interface OverwriteDefaultConfig { /** * Returns key value pairs to overwrite the config which are not set explicitly. * - * @return an Map of Config key and value pairs + * @return a Map of Config key and value pairs */ Map getOverwriteDefaultConfig(); } diff --git a/spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/iceberg/SparkIcebergCatalogIT.java b/spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/iceberg/SparkIcebergCatalogIT.java index 5392e5d3227..4df4992b5bc 100644 --- a/spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/iceberg/SparkIcebergCatalogIT.java +++ b/spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/integration/test/iceberg/SparkIcebergCatalogIT.java @@ -1150,7 +1150,7 @@ private List getIcebergSimpleTableColumn() { /** * Here we build a new `createIcebergSql` String for creating a table with a field of timestamp - * type to create the year/month,etc partitions + * type to create the year/month,etc. partitions */ private String getCreateIcebergSimpleTableString(String tableName) { return String.format( diff --git a/trino-connector/src/main/java/org/apache/gravitino/trino/connector/util/json/TypeDeserializer.java b/trino-connector/src/main/java/org/apache/gravitino/trino/connector/util/json/TypeDeserializer.java index ad5385bc6fd..7b3c19fc8d1 100644 --- a/trino-connector/src/main/java/org/apache/gravitino/trino/connector/util/json/TypeDeserializer.java +++ b/trino-connector/src/main/java/org/apache/gravitino/trino/connector/util/json/TypeDeserializer.java @@ -23,7 +23,7 @@ import java.util.function.Function; /** - * This class is reference to Trino source code io.trino.plugin.base.TypeDeserializer, It use to + * This class is reference to Trino source code io.trino.plugin.base.TypeDeserializer, It uses to * handle Type serialization */ public final class TypeDeserializer extends FromStringDeserializer { diff --git a/web/README.md b/web/README.md index f36af776a28..0ec24508d09 100644 --- a/web/README.md +++ b/web/README.md @@ -51,7 +51,7 @@ > **Requirements** > > Please make sure you use the node's LTS version -> Before installing the **node_modules**, make sure you have files starting with a **dot(.eslintrc, .env etc..)** +> Before installing the **node_modules**, make sure you have files starting with a **dot(.eslintrc, .env etc.)** ## Installation