You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (Jira)" <ji...@apache.org> on 2019/10/03 17:24:00 UTC
[jira] [Resolved] (CALCITE-3381) When generating SQL for BigQuery
(via unparsing), convert Calcite SQL types to BigQuery types
[ https://issues.apache.org/jira/browse/CALCITE-3381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haisheng Yuan resolved CALCITE-3381.
------------------------------------
Fix Version/s: 1.22.0
Resolution: Fixed
Fixed in https://github.com/apache/calcite/commit/30a0dd0a2edebdc08292b7d59988c60ccf754bed, thanks for the PR, [~amaliujia]!
> When generating SQL for BigQuery (via unparsing), convert Calcite SQL types to BigQuery types
> ---------------------------------------------------------------------------------------------
>
> Key: CALCITE-3381
> URL: https://issues.apache.org/jira/browse/CALCITE-3381
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.21.0
> Reporter: Kirill Kozlov
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.22.0
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> When using `SqlImplementor.SimpleContext#toSql` with BigQuerySqlDialect on Rel nodes containing `CAST` need to convert Calcite SqlTypeName to BigQuery supported types ([https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types]).
> I believe this can be accomplished by Overriding BigQuerySqlDialect#getCastSpec method.
> Example: VARCHAR should become a STRING, BOOLEAN - BOOL, and so on.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)