This is an automated email from the ASF dual-hosted git repository.
chunwei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/main by this push:
new d063b08296 Remove redundant `the` in java doc
d063b08296 is described below
commit d063b08296308eaed55e5234c436e4916159c990
Author: strongduanmu <[email protected]>
AuthorDate: Mon Aug 8 18:43:00 2022 +0800
Remove redundant `the` in java doc
Close apache/calcite#2867
---
.../main/java/org/apache/calcite/plan/RelOptSamplingParameters.java | 2 +-
.../java/org/apache/calcite/rel/rules/AggregateJoinTransposeRule.java | 2 +-
.../main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java | 2 +-
.../java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java | 2 +-
core/src/main/java/org/apache/calcite/runtime/Like.java | 2 +-
core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java | 4 ++--
core/src/main/java/org/apache/calcite/sql/SqlKind.java | 2 +-
core/src/main/java/org/apache/calcite/sql/SqlUtil.java | 2 +-
core/src/main/java/org/apache/calcite/sql/TableCharacteristic.java | 4 ++--
.../apache/calcite/test/concurrent/ConcurrentTestCommandScript.java | 4 ++--
10 files changed, 13 insertions(+), 13 deletions(-)
diff --git
a/core/src/main/java/org/apache/calcite/plan/RelOptSamplingParameters.java
b/core/src/main/java/org/apache/calcite/plan/RelOptSamplingParameters.java
index 2e9ddb7b8d..99eb3da907 100644
--- a/core/src/main/java/org/apache/calcite/plan/RelOptSamplingParameters.java
+++ b/core/src/main/java/org/apache/calcite/plan/RelOptSamplingParameters.java
@@ -48,7 +48,7 @@ public class RelOptSamplingParameters {
/**
* Indicates whether Bernoulli or system sampling should be performed.
* Bernoulli sampling requires the decision whether to include each row in
- * the the sample to be independent across rows. System sampling allows
+ * the sample to be independent across rows. System sampling allows
* implementation-dependent behavior.
*
* @return true if Bernoulli sampling is configured, false for system
diff --git
a/core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinTransposeRule.java
b/core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinTransposeRule.java
index 509094d1f2..43c563f9a9 100644
---
a/core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinTransposeRule.java
+++
b/core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinTransposeRule.java
@@ -230,7 +230,7 @@ public class AggregateJoinTransposeRule
// metadata more robust" is fixed) places a heavy load on
// the metadata system.
//
- // So we choose to imagine the the input is already unique, which is
+ // So we choose to imagine the input is already unique, which is
// untrue but harmless.
//
Util.discard(Bug.CALCITE_1048_FIXED);
diff --git
a/core/src/main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java
b/core/src/main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java
index 8aebddb79f..34be2e811c 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java
+++ b/core/src/main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java
@@ -785,7 +785,7 @@ public class LoptOptimizeJoinRule
int [][] factorWeights = multiJoin.getFactorWeights();
for (int factor : BitSets.toIter(factorsToAdd)) {
// if the factor corresponds to a dimension table whose
- // join we can remove, make sure the the corresponding fact
+ // join we can remove, make sure the corresponding fact
// table is in the current join tree
Integer factIdx = multiJoin.getJoinRemovalFactor(factor);
if (factIdx != null) {
diff --git
a/core/src/main/java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java
b/core/src/main/java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java
index 761dd1df70..1ed0652788 100644
---
a/core/src/main/java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java
+++
b/core/src/main/java/org/apache/calcite/rel/rules/ProjectWindowTransposeRule.java
@@ -79,7 +79,7 @@ public class ProjectWindowTransposeRule
// (Note that the constants used in LogicalWindow are not considered here)
final ImmutableBitSet beReferred = findReference(project, window);
- // If all the the window input columns are referred,
+ // If all the window input columns are referred,
// it is impossible to trim anyone of them out
if (beReferred.cardinality() == windowInputColumn) {
return;
diff --git a/core/src/main/java/org/apache/calcite/runtime/Like.java
b/core/src/main/java/org/apache/calcite/runtime/Like.java
index 34f20deb72..d5fd5a68eb 100644
--- a/core/src/main/java/org/apache/calcite/runtime/Like.java
+++ b/core/src/main/java/org/apache/calcite/runtime/Like.java
@@ -127,7 +127,7 @@ public class Like {
return;
}
if (SQL_SIMILAR_SPECIALS.indexOf(escapeChar) >= 0) {
- // The the escape character is a special character
+ // The escape character is a special character
// SQL 2003 Part 2 Section 8.6 General Rule 3.b
for (int i = 0; i < sqlPattern.length(); i++) {
if (sqlPattern.charAt(i) == escapeChar) {
diff --git a/core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java
b/core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java
index 55ecd9b121..75db2b2855 100644
--- a/core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java
+++ b/core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java
@@ -93,12 +93,12 @@ public class ViewTable
return viewSql;
}
- /** Returns the the schema path of the view. */
+ /** Returns the schema path of the view. */
public List<String> getSchemaPath() {
return schemaPath;
}
- /** Returns the the path of the view. */
+ /** Returns the path of the view. */
public @Nullable List<String> getViewPath() {
return viewPath;
}
diff --git a/core/src/main/java/org/apache/calcite/sql/SqlKind.java
b/core/src/main/java/org/apache/calcite/sql/SqlKind.java
index 443711268d..e6ef04d619 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlKind.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlKind.java
@@ -133,7 +133,7 @@ public enum SqlKind {
/**
* Input tables have either row semantics or set semantics.
* <ul>
- * <li>Row semantics means that the the result of the table function is
+ * <li>Row semantics means that the result of the table function is
* decided on a row-by-row basis.
* <li>Set semantics means that the outcome of the function depends on how
* the data is partitioned.
diff --git a/core/src/main/java/org/apache/calcite/sql/SqlUtil.java
b/core/src/main/java/org/apache/calcite/sql/SqlUtil.java
index ad7aae2dcf..5ee6e560cb 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlUtil.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlUtil.java
@@ -946,7 +946,7 @@ public abstract class SqlUtil {
/**
* Creates the type of an {@link org.apache.calcite.util.NlsString}.
*
- * <p>The type inherits the The NlsString's {@link Charset} and
+ * <p>The type inherits the NlsString's {@link Charset} and
* {@link SqlCollation}, if they are set, otherwise it gets the system
* defaults.
*
diff --git a/core/src/main/java/org/apache/calcite/sql/TableCharacteristic.java
b/core/src/main/java/org/apache/calcite/sql/TableCharacteristic.java
index b30aa7587e..c4afe53843 100644
--- a/core/src/main/java/org/apache/calcite/sql/TableCharacteristic.java
+++ b/core/src/main/java/org/apache/calcite/sql/TableCharacteristic.java
@@ -27,7 +27,7 @@ import java.util.Objects;
* <p>The first characteristic is semantics. The table has either
* row semantics or set semantics.
*
- * <p>Row semantics means that the the result of the table function is decided
+ * <p>Row semantics means that the result of the table function is decided
* on a row-by-row basis.
*
* <p>Example of a table function with row semantics input table parameter:
@@ -304,7 +304,7 @@ public class TableCharacteristic {
*/
public enum Semantics {
/**
- * Row semantics means that the the result of the Window TableFunction
+ * Row semantics means that the result of the Window TableFunction
* is decided on a row-by-row basis.
* As an extreme example, the DBMS could atomize the input table into
* individual rows, and send each single row to a different virtual
diff --git
a/core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java
b/core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java
index 76ff9fc54d..e0e96aa6dd 100644
---
a/core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java
+++
b/core/src/test/java/org/apache/calcite/test/concurrent/ConcurrentTestCommandScript.java
@@ -231,7 +231,7 @@ public class ConcurrentTestCommandScript
private static final char[] DASHES = fill(new char[BUF_SIZE], '-');
// Special "thread ids" for setup & cleanup sections; actually setup &
- // cleanup SQL is executed by the main thread, and neither are in the the
+ // cleanup SQL is executed by the main thread, and neither are in the
// thread map.
private static final Integer SETUP_THREAD_ID = -1;
private static final Integer CLEANUP_THREAD_ID = -2;
@@ -1570,7 +1570,7 @@ public class ConcurrentTestCommandScript
ProcessBuilder pb = new ProcessBuilder(argv);
pb.directory(scriptDirectory);
try {
- // direct stdout & stderr to the the threadWriter
+ // direct stdout & stderr to the threadWriter
int status = runAppProcess(pb, null, null, getThreadWriter(threadId));
if (status != 0) {
storeMessage(threadId,