Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.21.0
Description
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.
Attachments
Issue Links
- is related to
-
CALCITE-3568 BigQuery, Hive, Spark SQL dialect don't support nested aggregates
- Closed
- links to