Will Noble created CALCITE-6055:
-----------------------------------

             Summary: Customize handling of type name based on type system
                 Key: CALCITE-6055
                 URL: https://issues.apache.org/jira/browse/CALCITE-6055
             Project: Calcite
          Issue Type: Bug
            Reporter: Will Noble


This is very similar to CALCITE-5424, which only applied to literals (e.g. 
{{TIMESTAMP '2023-10-17 12:00:00'}}). We need a similar solution for [the 
{{DateTimeTypeName}} 
construction|https://github.com/apache/calcite/blob/6f79436c178beec639e559d9152c237bbf8ec3e8/core/src/main/codegen/templates/Parser.jj#L6019]
 which is used in other contexts (e.g. {{CAST '2023-10-17 12:00:00' AS 
TIMESTAMP}}). Seems like we can use a very similar approach: introduce a 
{{SqlUnknownTypeNameSpec}} that's resolved during validation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to