atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (ATLAS-1613) Regression: Big decimal max and min values are not handled properly
Date Thu, 02 Mar 2017 03:32:45 GMT

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

Madhan Neethiraj reassigned ATLAS-1613:
---------------------------------------

    Assignee: Madhan Neethiraj

> Regression: Big decimal max and min values are not handled properly
> -------------------------------------------------------------------
>
>                 Key: ATLAS-1613
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1613
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: trunk, 0.8-incubating
>            Reporter: Ayub Khan
>            Assignee: Madhan Neethiraj
>            Priority: Critical
>             Fix For: trunk, 0.8-incubating
>
>
> Request payload for setting big decimal max value:
> {noformat}
> {
>   "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>   "id":{
>     "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>     "id":"-16996760715405982",
>     "version":0,
>     "typeName":"EntityUpdateTestxpjmcqir3u",
>     "state":"ACTIVE"
>   },
>   "typeName":"EntityUpdateTestxpjmcqir3u",
>   "values":{
>     "set":[
>       "setValue1",
>       "setValue2"
>     ],
>     "bigdecimal":1.7976931348623157E308,
>     "collection":[
>       "collectionValue1",
>       "collectionValue2"
>     ],
>     "name":"updateEntitiestptzo2gf6i"
>   },
>   "traitNames":[
>   ],
>   "traits":{
>   },
>   "systemAttributes":{
>     "createdBy":null,
>     "modifiedBy":null,
>     "createdTime":null,
>     "modifiedTime":null
>   }
> }
> {noformat}
> Response is
> {noformat}
> {"requestId":"pool-2-thread-9 - 52da256a-7f7f-402f-8403-6217f2e5fcf4","definition":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference","id":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id","id":"ae26d4cd-a2a4-4b28-948f-22f9c27a79f6","version":0,"typeName":"EntityUpdateTestxpjmcqir3u","state":"ACTIVE"},"typeName":"EntityUpdateTestxpjmcqir3u","values":{"name":"updateEntitiestptzo2gf6i","collection":["collectionValue1","collectionValue2"],"float":0,"short":0,"set":["setValue1","setValue2"],"optional":null,"double":0,"long":0,"biginteger":0,"boolean":false,"date":"1970-01-01T00:00:00.000Z","bigdecimal":9223372036854775807,"int":0,"byte":0},"traitNames":[],"traits":{},"systemAttributes":{"createdBy":"admin","modifiedBy":"admin","createdTime":"2017-03-01T13:49:49.799Z","modifiedTime":"2017-03-01T13:49:49.960Z"}}}
> {noformat}
> Returned value is 9223372036854775807(which is long max).
> -----------------------------------------------------------------------
> request payload for setting big decimal min value
> {noformat}
>  {
>   "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>   "id":{
>     "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>     "id":"-16998670888126675",
>     "version":0,
>     "typeName":"EntityUpdateTestjctqlugw96",
>     "state":"ACTIVE"
>   },
>   "typeName":"EntityUpdateTestjctqlugw96",
>   "values":{
>     "set":[
>       "setValue1",
>       "setValue2"
>     ],
>     "bigdecimal":4.9E-324,
>     "collection":[
>       "collectionValue1",
>       "collectionValue2"
>     ],
>     "name":"updateEntitiesiapnzoudin"
>   },
>   "traitNames":[
>   ],
>   "traits":{
>   },
>   "systemAttributes":{
>     "createdBy":null,
>     "modifiedBy":null,
>     "createdTime":null,
>     "modifiedTime":null
>   }
> }
> {noformat}
> response is
> {noformat}
> {"requestId":"pool-2-thread-9 - a49d0b2c-4c3c-4d36-b680-31da7e29b747","entities":{"updated":["042a7b34-a35c-4de9-b472-29d8242e0f71"]},"definition":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference","id":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id","id":"042a7b34-a35c-4de9-b472-29d8242e0f71","version":0,"typeName":"EntityUpdateTestjctqlugw96","state":"ACTIVE"},"typeName":"EntityUpdateTestjctqlugw96","values":{"name":"updateEntitiesiapnzoudin","collection":["collectionValue1","collectionValue2"],"float":0,"short":0,"set":["setValue1","setValue2"],"optional":null,"double":0,"long":0,"biginteger":0,"boolean":false,"date":"1970-01-01T00:00:00.000Z","bigdecimal":0,"int":0,"byte":0},"traitNames":[],"traits":{},"systemAttributes":{"createdBy":"admin","modifiedBy":"admin","createdTime":"2017-03-01T14:21:40.031Z","modifiedTime":"2017-03-01T14:21:40.196Z"}}}
> {noformat}
> Returned value is 0 for big decimal min setting which incorrect.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message