Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.25.0
Description
The following BigQuery SQL contains CURRENT_DATE and CURRENT_DATETIME without parentheses. Babel parser should accept it. (It should also accept CURRENT_TIME and CURRENT_TIMESTAMP with parentheses.)
The following SQL should trigger CalciteContextException: No match found for function signature CURRENT_TIMESTAMP() for the date functions, or if you add parens to the current_time.
WITH THE_TIMES_ARE_STATIC AS (SELECT CURRENT_DATE as a_date, CURRENT_DATETIME() as a_datetime, CURRENT_TIME as a_time, CURRENT_TIMESTAMP() as a_timestamp ) SELECT * FROM THE_TIMES_ARE_STATIC
Attachments
Issue Links
- links to