You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2019/12/18 13:17:00 UTC

[jira] [Assigned] (FLINK-15313) Can not insert decimal with precision into sink using TypeInformation

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

Jark Wu reassigned FLINK-15313:
-------------------------------

    Assignee: Jark Wu

> Can not insert decimal with precision into sink using TypeInformation
> ---------------------------------------------------------------------
>
>                 Key: FLINK-15313
>                 URL: https://issues.apache.org/jira/browse/FLINK-15313
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Jingsong Lee
>            Assignee: Jark Wu
>            Priority: Blocker
>             Fix For: 1.10.0
>
>
> Sink DDL:
>  
> {code:java}
> val sinkDDL =
>   s"""
>     |CREATE TABLE T2 (
>     |  d DECIMAL(10, 2),
>     |  cnt INT
>     |) with (
>     |  'connector.type' = 'filesystem',
>     |  'connector.path' = '$sinkFilePath',
>     |  'format.type' = 'csv',
>     |  'format.field-delimiter' = ','
>     |)
>   """.stripMargin
> {code}
> Using blink with batch mode. (ensure insert BinaryRow into sink table)
>  
> In FLINK-15124 , but we still use wrong precision to construct DataFormatConverter. This will lead to exception when inserting BinaryRow. (BinaryRow need correct precision to get)
>  



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