[
https://issues.apache.org/jira/browse/CALCITE-5346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626729#comment-17626729
]
TJ Banghart commented on CALCITE-5346:
--------------------------------------
Adding a parser extension to convert custom types to
{{SqlAlienSystemTypeNameSpec}} seems like it would work in most cases. Again
from Flink the extended types are added to the parser here:
[https://github.com/apache/flink/blob/1c0534481c705c29b0e8eed3bdb421c188618b7a/flink-table/flink-sql-parser/src/main/codegen/data/Parser.tdd#L580]
Would it make sense to check BQ specific type mappings into Calcite? Perhaps in
babel?
> Support for type aliases
> ------------------------
>
> Key: CALCITE-5346
> URL: https://issues.apache.org/jira/browse/CALCITE-5346
> Project: Calcite
> Issue Type: New Feature
> Reporter: Will Noble
> Assignee: Will Noble
> Priority: Major
>
> We would like to support some sort of type alias functionality in order to
> map certain [BigQuery
> types|https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types]
> to ISO types, e.g. {{STRING}} -> {{VARCHAR}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)