You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "xuyang (Jira)" <ji...@apache.org> on 2024/10/14 14:11:00 UTC

[jira] [Comment Edited] (FLINK-36399) cast result is incorrect

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

xuyang edited comment on FLINK-36399 at 10/14/24 2:10 PM:
----------------------------------------------------------

Hi, [~davidradl] . Because this conf is not marked as deprecated (although its enum value is marked as deprecated), I did not remove it in the 2.0-preview version just in case...


was (Author: xuyangzhong):
Hi, [~davidradl] . Because this conf is not marked as deprecated (although its enum value is marked as deprecated, so I did not remove it in the 2.0-preview version just in case...

> cast result is incorrect
> ------------------------
>
>                 Key: FLINK-36399
>                 URL: https://issues.apache.org/jira/browse/FLINK-36399
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 2.0-preview
>            Reporter: Jacky Lau
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> case:
> configuration.set(
>                 ExecutionConfigOptions.TABLE_EXEC_LEGACY_CAST_BEHAVIOUR,
>                 ExecutionConfigOptions.LegacyCastBehaviour.ENABLED);
> tableEnv.executeSql("SELECT CAST(CAST('100' AS DECIMAL(2, 0)) AS STRING)").print();
>  
> expected is null but it is empty string



--
This message was sent by Atlassian Jira
(v8.20.10#820010)