You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Hequn Cheng (JIRA)" <ji...@apache.org> on 2018/05/21 12:51:00 UTC

[jira] [Updated] (CALCITE-2321) Support ragged fixed length value union be variable

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

Hequn Cheng updated CALCITE-2321:
---------------------------------
    Description: 
The {{shouldRaggedFixedLengthValueUnionBeVariable()}} function in {{SqlTypeFactoryImpl}} always return false now. It is good to make it configurable since some system may need the function to return true to provide pragmatic behavior. For example, for the sql: case 1 when 1 then 'a' when 2 then 'bcd' end, we need the return value to be 'a' instead of 'a  ' of CHAR(3).

I see one option to solve this issue: Add {{boolean shouldRaggedFixedLengthValueUnionBeVariable()}} in {{RelDataTypeSystem}}, so external system can override to configure the value.

Any suggestions are welcomed. Thanks a lot.

  was:
The {{shouldRaggedFixedLengthValueUnionBeVariable()}} function in {{SqlTypeFactoryImpl}} always return false now. It is good to make it configurable since some system may need the function to return true to provide pragmatic behavior.

I see one option to solve this issue: Add {{boolean shouldRaggedFixedLengthValueUnionBeVariable()}} in {{RelDataTypeSystem}}, so external system can override to configure the value.

Any suggestions are welcomed. Thanks a lot.


> Support ragged fixed length value union be variable
> ---------------------------------------------------
>
>                 Key: CALCITE-2321
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2321
>             Project: Calcite
>          Issue Type: New Feature
>          Components: core
>            Reporter: Hequn Cheng
>            Assignee: Hequn Cheng
>            Priority: Major
>
> The {{shouldRaggedFixedLengthValueUnionBeVariable()}} function in {{SqlTypeFactoryImpl}} always return false now. It is good to make it configurable since some system may need the function to return true to provide pragmatic behavior. For example, for the sql: case 1 when 1 then 'a' when 2 then 'bcd' end, we need the return value to be 'a' instead of 'a  ' of CHAR(3).
> I see one option to solve this issue: Add {{boolean shouldRaggedFixedLengthValueUnionBeVariable()}} in {{RelDataTypeSystem}}, so external system can override to configure the value.
> Any suggestions are welcomed. Thanks a lot.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)