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

[jira] [Updated] (CALCITE-3331) Support implicit type cast for single operand family checker

     [ https://issues.apache.org/jira/browse/CALCITE-3331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danny Chan updated CALCITE-3331:
--------------------------------
    Description: 
When the FamilyOperandTypeChecker is used to check single operand data type, support implicit type coercion if we can.

Now some of the sql operator override method #checkOperandTypes, and use the SqlSingleOperandTypeChecker#checkSingleOperandType to check the operand data type, we should support the implicit type coercion for these operators.

One impl that need to note:

we seem always pass the "iformalOperand" as "0" with method SqlSingleOperandTypeChecker#checkSingleOperandType when check the single operand, we need to pass in the real operand index in the call to the checker.

  was:
When the FamilyOperandTypeChecker is used to check single operand data type, support implicit type coercion if we can.

Now some of the sql operator override method #checkOperandTypes, and use the SqlSingleOperandTypeChecker#checkSingleOperandType to check the operand data type, we should support the implicit type coercion for these operators.


> Support implicit type cast for single operand family checker
> ------------------------------------------------------------
>
>                 Key: CALCITE-3331
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3331
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.20.0
>            Reporter: Danny Chan
>            Assignee: Danny Chan
>            Priority: Minor
>             Fix For: 1.22.0
>
>
> When the FamilyOperandTypeChecker is used to check single operand data type, support implicit type coercion if we can.
> Now some of the sql operator override method #checkOperandTypes, and use the SqlSingleOperandTypeChecker#checkSingleOperandType to check the operand data type, we should support the implicit type coercion for these operators.
> One impl that need to note:
> we seem always pass the "iformalOperand" as "0" with method SqlSingleOperandTypeChecker#checkSingleOperandType when check the single operand, we need to pass in the real operand index in the call to the checker.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)