File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,12 @@ TableBaseReference: ast::FromLetAst = {
264
264
265
265
#[inline]
266
266
TableUnpivot: ast::FromLetAst = {
267
- <lo:@L> "UNPIVOT" <e:ExprQuery> "AS"? <ident_as:SymbolPrimitive> "AT" <ident_at:SymbolPrimitive > <hi:@R> => {
267
+ <lo:@L> "UNPIVOT" <e:ExprQuery> <as_ident:AsIdent?> <at_ident:AtIdent? > <hi:@R> => {
268
268
ast::FromLet {
269
269
expr: e,
270
270
kind: ast::FromLetKind::Unpivot,
271
- as_alias: Some(ident_as) ,
272
- at_alias: Some(ident_at) ,
271
+ as_alias: as_ident ,
272
+ at_alias: at_ident ,
273
273
by_alias: None,
274
274
}.ast(lo..hi)
275
275
}
@@ -1156,6 +1156,14 @@ SymbolPrimitive: ast::SymbolPrimitive = {
1156
1156
},
1157
1157
};
1158
1158
1159
+ AsIdent: ast::SymbolPrimitive = {
1160
+ "AS" <SymbolPrimitive>
1161
+ }
1162
+
1163
+ AtIdent: ast::SymbolPrimitive = {
1164
+ "AT" <SymbolPrimitive>
1165
+ }
1166
+
1159
1167
// ------------------------------------------------------------------------------ //
1160
1168
// //
1161
1169
// Lexer //
You can’t perform that action at this time.
0 commit comments