Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ alterColumnAction
// You can find the full keywords list by searching "Start of the keywords list" in this file.
// The non-reserved keywords are listed below. Keywords not in this list are reserved keywords.
ansiNonReserved
//--ANSI-NON-RESERVED-START
: ADD
| AFTER
| ALTER
Expand Down Expand Up @@ -1185,6 +1186,7 @@ ansiNonReserved
| VIEW
| VIEWS
| WINDOW
//--ANSI-NON-RESERVED-END
;

// When `SQL_standard_keyword_behavior=false`, there are 2 kinds of keywords in Spark SQL.
Expand All @@ -1197,6 +1199,7 @@ ansiNonReserved
// The non-reserved keywords are listed in `nonReserved`.
// These 2 together contain all the keywords.
strictNonReserved
//--ANSI-STRICT-NON-RESERVED-START

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not ansi, we should just call it STRICT-NON-RESERVED

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I missed that. I'll update soon.

: ANTI
| CROSS
| EXCEPT
Expand All @@ -1212,6 +1215,7 @@ strictNonReserved
| SETMINUS
| UNION
| USING
//--ANSI-STRICT-NON-RESERVED-END
;

nonReserved
Expand Down Expand Up @@ -1462,6 +1466,7 @@ nonReserved
//============================
// Start of the keywords list
//============================
//--SPARK-KEYWORD-LIST-START
ADD: 'ADD';
AFTER: 'AFTER';
ALL: 'ALL';
Expand Down Expand Up @@ -1714,6 +1719,7 @@ WHERE: 'WHERE';
WINDOW: 'WINDOW';
WITH: 'WITH';
YEAR: 'YEAR';
//--SPARK-KEYWORD-LIST-END
//============================
// End of the keywords list
//============================
Expand Down
Loading