File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -403,6 +403,9 @@ class Parser(parser.Parser):
403
403
NO_PAREN_FUNCTION_PARSERS = parser .Parser .NO_PAREN_FUNCTION_PARSERS .copy ()
404
404
NO_PAREN_FUNCTION_PARSERS .pop ("ANY" )
405
405
406
+ NO_PAREN_FUNCTIONS = parser .Parser .NO_PAREN_FUNCTIONS .copy ()
407
+ NO_PAREN_FUNCTIONS .pop (TokenType .CURRENT_TIMESTAMP )
408
+
406
409
RANGE_PARSERS = {
407
410
** parser .Parser .RANGE_PARSERS ,
408
411
TokenType .GLOBAL : lambda self , this : self ._match (TokenType .IN )
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ def test_clickhouse(self):
515
515
)
516
516
self .validate_identity ("SELECT TRIM(TRAILING ')' FROM '( Hello, world! )')" )
517
517
self .validate_identity ("SELECT TRIM(LEADING '(' FROM '( Hello, world! )')" )
518
+ self .validate_identity ("current_timestamp" ).assert_is (exp .Column )
518
519
519
520
def test_clickhouse_values (self ):
520
521
values = exp .select ("*" ).from_ (
You can’t perform that action at this time.
0 commit comments