Skip to content

Commit 8954e08

Browse files
huyuanfeng2018xiedeyantu
authored andcommitted
Correct several misspellings
1 parent 585cbda commit 8954e08

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cassandra/src/test/resources/cassandra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ commit_failure_policy: stop
297297
# i.e. use bind markers for variable parts.
298298
#
299299
# Do only change the default value, if you really have more prepared statements than
300-
# fit in the cache. In most cases it is not neccessary to change this value.
300+
# fit in the cache. In most cases it is not necessary to change this value.
301301
# Constantly re-preparing statements is a performance penalty.
302302
#
303303
# Default value ("auto") is 1/256th of the heap or 10MB, whichever is greater

core/src/main/java/org/apache/calcite/sql/advise/SqlSimpleParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private Token parseQuotedIdentifier() {
297297
++pos;
298298
if (c == closeQuote) {
299299
if (pos < sql.length() && sql.charAt(pos) == closeQuote) {
300-
// Double close means escaped closing quote is a part of identifer
300+
// Double close means escaped closing quote is a part of identifier
301301
++pos;
302302
continue;
303303
}

core/src/main/java/org/apache/calcite/sql/dialect/Db2SqlDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Db2SqlDialect(Context context) {
8181
// A duration is a positive or negative number representing an interval of time.
8282
// If one operand is a date, the other labeled duration of YEARS, MONTHS, or DAYS.
8383
// If one operand is a time, the other must be labeled duration of HOURS, MINUTES, or SECONDS.
84-
// If one operand is a timestamp, the other operand can be any of teh duration.
84+
// If one operand is a timestamp, the other operand can be any duration.
8585

8686
SqlIntervalLiteral.IntervalValue interval =
8787
literal.getValueAs(SqlIntervalLiteral.IntervalValue.class);

core/src/main/java/org/apache/calcite/sql/util/SqlBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* <p>Using this class helps to prevent SQL injection attacks, incorrectly
3232
* quoted identifiers and strings. These problems occur when you build SQL by
33-
* concatenating strings, and you forget to treat identifers and string literals
33+
* concatenating strings, and you forget to treat identifiers and string literals
3434
* correctly. SqlBuilder has special methods for appending identifiers and
3535
* literals.
3636
*/

core/src/test/resources/sql/cast-with-format.iq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ select cast(cast("1985-12-02" as date) as varchar format "\"free text\"");
28602860
No datetime tokens provided.
28612861
!error
28622862

2863-
# FX modifier not at the begining of the format.
2863+
# FX modifier not at the beginning of the format.
28642864
select cast("2001-03-01 00:10:02" as timestamp format
28652865
"YYYY-MM-DD FXHH12:MI:SS");
28662866
FX modifier should be at the beginning of the format string.

site/_docs/history.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ other software versions as specified in gradle.properties.
15771577
`AssertionError`: "Conversion to relational algebra failed to preserve datatypes"
15781578
when union `VARCHAR` literal and `CAST(null AS INTEGER)`
15791579
* [<a href="https://issues.apache.org/jira/browse/CALCITE-6178">CALCITE-6178</a>]
1580-
`WITH RECURSIVE` query when cloned using `SqlShuttle` looses `RECURSIVE` property
1580+
`WITH RECURSIVE` query when cloned using `SqlShuttle` loses `RECURSIVE` property
15811581
* [<a href="https://issues.apache.org/jira/browse/CALCITE-6332">CALCITE-6332</a>]
15821582
Optimization `CoreRules.AGGREGATE_EXPAND_DISTINCT_AGGREGATES_TO_JOIN` produces
15831583
incorrect results for aggregates with groupSets

0 commit comments

Comments
 (0)