File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ impl<'a> Parser<'a> {
883
883
let args = self . parse_optional_args ( ) ?;
884
884
let over = if self . parse_keyword ( Keyword :: OVER ) {
885
885
if self . consume_token ( & Token :: LParen ) {
886
- let window_spec = self . parse_window_args ( ) ?;
886
+ let window_spec = self . parse_window_spec ( ) ?;
887
887
Some ( WindowType :: WindowSpec ( window_spec) )
888
888
} else {
889
889
Some ( WindowType :: NamedWindow ( self . parse_identifier ( ) ?) )
@@ -6927,11 +6927,11 @@ impl<'a> Parser<'a> {
6927
6927
let ident = self . parse_identifier ( ) ?;
6928
6928
self . expect_keyword ( Keyword :: AS ) ?;
6929
6929
self . expect_token ( & Token :: LParen ) ?;
6930
- let window_spec = self . parse_window_args ( ) ?;
6930
+ let window_spec = self . parse_window_spec ( ) ?;
6931
6931
Ok ( IdentWindow ( ident, window_spec) )
6932
6932
}
6933
6933
6934
- pub fn parse_window_args ( & mut self ) -> Result < WindowSpec , ParserError > {
6934
+ pub fn parse_window_spec ( & mut self ) -> Result < WindowSpec , ParserError > {
6935
6935
let partition_by = if self . parse_keywords ( & [ Keyword :: PARTITION , Keyword :: BY ] ) {
6936
6936
self . parse_comma_separated ( Parser :: parse_expr) ?
6937
6937
} else {
You can’t perform that action at this time.
0 commit comments