Skip to content

Commit 8fd25a9

Browse files
John Bodleyandialbrecht
authored andcommitted
[keywords] Adding Calcite temporal keywords
1 parent 54a9237 commit 8fd25a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sqlparse/keywords.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ def is_keyword(value):
289289
'HAVING': tokens.Keyword,
290290
'HIERARCHY': tokens.Keyword,
291291
'HOLD': tokens.Keyword,
292+
'HOUR': tokens.Keyword,
292293
'HOST': tokens.Keyword,
293294

294295
'IDENTIFIED': tokens.Keyword,
@@ -415,6 +416,8 @@ def is_keyword(value):
415416
'OVERRIDING': tokens.Keyword,
416417
'OWNER': tokens.Keyword,
417418

419+
'QUARTER': tokens.Keyword,
420+
418421
'PAD': tokens.Keyword,
419422
'PARAMETER': tokens.Keyword,
420423
'PARAMETERS': tokens.Keyword,
@@ -604,6 +607,7 @@ def is_keyword(value):
604607
'VIEW': tokens.Keyword,
605608
'VOLATILE': tokens.Keyword,
606609

610+
'WEEK': tokens.Keyword,
607611
'WHENEVER': tokens.Keyword,
608612
'WITH': tokens.Keyword.CTE,
609613
'WITHOUT': tokens.Keyword,

0 commit comments

Comments
 (0)