Skip to content

Commit 445d0cb

Browse files
committed
fix: the align in range query must exist
1 parent e98e6b3 commit 445d0cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/parser/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10458,6 +10458,13 @@ impl<'a> Parser<'a> {
1045810458
*value = fill.clone();
1045910459
}
1046010460
}
10461+
10462+
if align.is_none() {
10463+
return Err(ParserError::ParserError(
10464+
"ALIGN argument cannot be omitted in the range select query".into(),
10465+
));
10466+
}
10467+
1046110468
args.args.push(by_num.clone());
1046210469
args.args.extend(by.clone());
1046310470
args.args.push(FunctionArg::Unnamed(FunctionArgExpr::Expr(

0 commit comments

Comments
 (0)