We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0984b3f commit 1242726Copy full SHA for 1242726
scripts/build/build-website.sh
@@ -10,7 +10,7 @@ cd "$SCRIPT_PATH/../.." || exit
10
echo "Building docs"
11
cd website
12
13
-# NOET: for aarch64 macos
+# NOTE: for aarch64 macos
14
# arch -x86_64 zsh
15
16
mkdir -p ~/.nvm
src/query/ast/src/parser/common.rs
@@ -518,7 +518,7 @@ where
518
input.backtrace.clear();
519
520
let err_kind = match err {
521
- PrattError::EmptyInput => ErrorKind::Other("expecting an oprand"),
+ PrattError::EmptyInput => ErrorKind::Other("expecting an operand"),
522
PrattError::UnexpectedNilfix(_) => ErrorKind::Other("unable to parse the element"),
523
PrattError::UnexpectedPrefix(_) => {
524
ErrorKind::Other("unable to parse the prefix operator")
src/query/ast/tests/it/testdata/expr-error.txt
@@ -5,7 +5,7 @@ error:
5
--> SQL:1:3
6
|
7
1 | 5 * (a and ) 1
8
- | - ^ expecting an oprand
+ | - ^ expecting an operand
9
| |
| while parsing expression
@@ -17,7 +17,7 @@ error:
17
--> SQL:1:5
18
19
1 | a + +
20
21
22
23
src/query/ast/tests/it/testdata/query-error.txt
--> SQL:1:24
1 | select * from customer join where a = b
- | ------ ^^^^ expecting an oprand
+ | ------ ^^^^ expecting an operand
| while parsing `SELECT ...`
src/query/script/src/compiler.rs
@@ -724,14 +724,14 @@ impl Compiler {
724
fn compile_case(
725
&mut self,
726
span: Span,
727
- oprand: &Expr,
+ operand: &Expr,
728
conditions: &[Expr],
729
results: &[Vec<ScriptStatement>],
730
else_result: &Option<Vec<ScriptStatement>>,
731
) -> Result<Vec<ScriptIR>> {
732
let conditions = conditions
733
.iter()
734
- .map(|condition| wrap_eq(condition.span(), oprand.clone(), condition.clone()))
+ .map(|condition| wrap_eq(condition.span(), operand.clone(), condition.clone()))
735
.collect::<Vec<_>>();
736
self.compile_if(span, &conditions, results, else_result)
737
}
src/query/sql/src/planner/binder/util.rs
@@ -186,7 +186,7 @@ impl TableIdentifier {
186
QuotedIdent(&database.name, self.dialect.default_ident_quote())
187
)
188
189
- Some(NameResolutionSuggest::Unqoted) => {
+ Some(NameResolutionSuggest::Unquoted) => {
190
format!(
191
"Unknown database {catalog}.{database} (quoted). Did you mean {} (unquoted)?",
192
&database.name
@@ -204,7 +204,7 @@ impl TableIdentifier {
204
QuotedIdent(&table.name, self.dialect.default_ident_quote())
205
206
207
208
209
"Unknown table {catalog}.{database}.{table} (quoted). Did you mean {} (unquoted)?",
210
&table.name
src/query/sql/src/planner/semantic/name_resolution.rs
@@ -33,7 +33,7 @@ pub struct NameResolutionContext {
33
34
pub enum NameResolutionSuggest {
35
Quoted,
36
- Unqoted,
+ Unquoted,
37
38
39
impl NameResolutionContext {
@@ -48,7 +48,7 @@ impl NameResolutionContext {
48
) {
49
(false, true, false) => Some(NameResolutionSuggest::Quoted),
50
(true, false, true) if !ident_needs_quote(&ident.name) => {
51
- Some(NameResolutionSuggest::Unqoted)
+ Some(NameResolutionSuggest::Unquoted)
52
53
_ => None,
54
tests/sqllogictests/suites/query/functions/02_0012_function_datetimes_tz.test
@@ -885,7 +885,7 @@ query T
885
SELECT substr(DATE_ADD(month, 1, now())::String, 6, 2) =
886
CASE
887
WHEN substr(now()::String, 6, 2) = '12' THEN '01'
888
- ELSE (substr(now()::String, 6, 2)::int + 1)::String
+ ELSE LPAD((substr(now()::String, 6, 2)::int + 1)::String, 2, '0')
889
END;
890
----
891
1
@@ -950,7 +950,7 @@ query T
950
951
952
953
954
955
956
@@ -960,7 +960,7 @@ query T
960
SELECT substr(DATE_ADD(month, 1, now())::String, 1, 4) =
961
962
WHEN substr(now()::String, 6, 2) = '12' THEN (substr(now()::String, 1,4)::int+1)::String
963
+ ELSE (substr(now()::String, 1,4)::int)::String
964
965
966
tests/sqllogictests/suites/query/functions/02_0075_function_datetimes_tz.test
@@ -759,7 +759,7 @@ query T
759
760
761
762
763
764
765
@@ -769,7 +769,7 @@ query T
769
770
771
772
773
774
775
0 commit comments