This is an automated email from the ASF dual-hosted git repository.

zhenchen 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 8954e08912 Correct several misspellings
8954e08912 is described below

commit 8954e089123cfed5497b73dfbf513b44dcc0fc66
Author: big face cat <[email protected]>
AuthorDate: Thu Dec 11 12:33:23 2025 +0800

    Correct several misspellings
---
 cassandra/src/test/resources/cassandra.yaml                           | 2 +-
 core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java | 2 +-
 core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java  | 2 +-
 core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java        | 2 +-
 core/src/test/resources/sql/cast-with-format.iq                       | 2 +-
 site/_docs/history.md                                                 | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/cassandra/src/test/resources/cassandra.yaml 
b/cassandra/src/test/resources/cassandra.yaml
index 123b5807db..ab6058bbba 100644
--- a/cassandra/src/test/resources/cassandra.yaml
+++ b/cassandra/src/test/resources/cassandra.yaml
@@ -297,7 +297,7 @@ commit_failure_policy: stop
 # i.e. use bind markers for variable parts.
 #
 # Do only change the default value, if you really have more prepared 
statements than
-# fit in the cache. In most cases it is not neccessary to change this value.
+# fit in the cache. In most cases it is not necessary to change this value.
 # Constantly re-preparing statements is a performance penalty.
 #
 # Default value ("auto") is 1/256th of the heap or 10MB, whichever is greater
diff --git 
a/core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java 
b/core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java
index 29903b312d..86d4c88e94 100644
--- a/core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java
+++ b/core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java
@@ -297,7 +297,7 @@ private Token parseQuotedIdentifier() {
         ++pos;
         if (c == closeQuote) {
           if (pos < sql.length() && sql.charAt(pos) == closeQuote) {
-            // Double close means escaped closing quote is a part of identifer
+            // Double close means escaped closing quote is a part of identifier
             ++pos;
             continue;
           }
diff --git 
a/core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java 
b/core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java
index fb335e8aa5..27bccd0b93 100644
--- a/core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java
+++ b/core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java
@@ -81,7 +81,7 @@ public Db2SqlDialect(Context context) {
     // A duration is a positive or negative number representing an interval of 
time.
     // If one operand is a date, the other labeled duration of YEARS, MONTHS, 
or DAYS.
     // If one operand is a time, the other must be labeled duration of HOURS, 
MINUTES, or SECONDS.
-    // If one operand is a timestamp, the other operand can be any of teh 
duration.
+    // If one operand is a timestamp, the other operand can be any duration.
 
     SqlIntervalLiteral.IntervalValue interval =
         literal.getValueAs(SqlIntervalLiteral.IntervalValue.class);
diff --git a/core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java 
b/core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java
index 29aea20cd5..023728abe0 100644
--- a/core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java
+++ b/core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java
@@ -30,7 +30,7 @@
  *
  * <p>Using this class helps to prevent SQL injection attacks, incorrectly
  * quoted identifiers and strings. These problems occur when you build SQL by
- * concatenating strings, and you forget to treat identifers and string 
literals
+ * concatenating strings, and you forget to treat identifiers and string 
literals
  * correctly. SqlBuilder has special methods for appending identifiers and
  * literals.
  */
diff --git a/core/src/test/resources/sql/cast-with-format.iq 
b/core/src/test/resources/sql/cast-with-format.iq
index 04588143d7..f6b8d5026d 100644
--- a/core/src/test/resources/sql/cast-with-format.iq
+++ b/core/src/test/resources/sql/cast-with-format.iq
@@ -2860,7 +2860,7 @@ select cast(cast("1985-12-02" as date) as varchar format 
"\"free text\"");
 No datetime tokens provided.
 !error
 
-# FX modifier not at the begining of the format.
+# FX modifier not at the beginning of the format.
 select cast("2001-03-01 00:10:02" as timestamp format
     "YYYY-MM-DD FXHH12:MI:SS");
 FX modifier should be at the beginning of the format string.
diff --git a/site/_docs/history.md b/site/_docs/history.md
index 0066dde468..399d0bfcec 100644
--- a/site/_docs/history.md
+++ b/site/_docs/history.md
@@ -1577,7 +1577,7 @@ #### Bug-fixes, API changes and minor enhancements
   `AssertionError`: "Conversion to relational algebra failed to preserve 
datatypes"
   when union `VARCHAR` literal and `CAST(null AS INTEGER)`
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-6178";>CALCITE-6178</a>]
-  `WITH RECURSIVE` query when cloned using `SqlShuttle` looses `RECURSIVE` 
property
+  `WITH RECURSIVE` query when cloned using `SqlShuttle` loses `RECURSIVE` 
property
 * [<a 
href="https://issues.apache.org/jira/browse/CALCITE-6332";>CALCITE-6332</a>]
   Optimization `CoreRules.AGGREGATE_EXPAND_DISTINCT_AGGREGATES_TO_JOIN` 
produces
   incorrect results for aggregates with groupSets

Reply via email to