You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Ashwini K (JIRA)" <ji...@apache.org> on 2017/12/21 12:31:02 UTC

[jira] [Commented] (CARBONDATA-1341) the data load not failing for bigdecimal datatype even though if action is fail and data is not in valid range

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

Ashwini K commented on CARBONDATA-1341:
---------------------------------------

HI , In the current version of the code invalid value 2.111 is getting rounded to nearest value like 2.11 . I think this is the correct behavior . Can you please suggest if this jira can be marked resolved ?

> the data load not failing for bigdecimal datatype even though if action is fail and data is not in valid range
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1341
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1341
>             Project: CarbonData
>          Issue Type: Bug
>            Reporter: Mohammad Shahid Khan
>            Assignee: Ashwini K
>            Priority: Minor
>
> Create table t1(c1 Decimal(3,2), c2 String) stored by 'carbondata'
> For column c1, the expected allowed data should be 
> 2
> 2.1
> 2.11
> Invalid data
> 2.111
> Actual: But when we load / insert data 2.111 carbon is storing as null, when action is fail.
> Expected : The load should fail if bad record action is fail.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)