Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
Some functions such as TO_DATE & TO_CHAR are breaking in SELECT statements. These functions do however work in DDL statements such as create view.
"SELECT * FROM t WHERE k1 = TO_DATE(TO_CHAR(CURRENT_DATE())"
org.apache.calcite.sql.validate.SqlValidatorException: No match found for function signature TO_DATE()
But once wrapped in a DDL statement, it executes fine:
"CREATE VIEW v AS SELECT * FROM t WHERE k1 = TO_DATE(TO_CHAR(CURRENT_DATE())