[
https://issues.apache.org/jira/browse/CALCITE-6055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17776929#comment-17776929
]
LakeShen commented on CALCITE-6055:
-----------------------------------
Hi [~wnoble] ,could you give the sql example in the jira's summary?I think that
it is better to help others understand this.
And I think that the title of Jira should be more accurate and clear about your
proposal.Are there something about datetime types literals,right?
> 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
> Priority: Minor
> Labels: pull-request-available
>
> 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)