You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/09/30 18:31:00 UTC

[jira] [Commented] (CALCITE-3282) HiveSqlDialect unparse Interger type as Int in order to be compatible with Hive1.x

    [ https://issues.apache.org/jira/browse/CALCITE-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16941233#comment-16941233 ] 

Julian Hyde commented on CALCITE-3282:
--------------------------------------

The commit message contained a typo, so I revised in [f3758a6f|https://github.com/apache/calcite/commit/f3758a6fa301cbd910ceabeca9075a3772ee4e8b].

> HiveSqlDialect unparse Interger type as Int in order to be compatible with Hive1.x
> ----------------------------------------------------------------------------------
>
>                 Key: CALCITE-3282
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3282
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: feng huang
>            Assignee: Danny Chen
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> Every database might have different type or same type but different type name, therefore making every SqlDialect unparse their own data type is a suitable way.
> For example, there is a sql “select cast(col as int) from table” change to hive sql "select cast(col as integer) from table", but "integer" is not allowed in hive.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)