ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kasnacheev <ilya.kasnach...@gmail.com>
Subject Re: BUG - .net decimal type creating ignite table produces double
Date Mon, 08 Oct 2018 09:05:57 GMT
Hello!

Is it a follow-up of
http://apache-ignite-users.70518.x6.nabble.com/net-decimal-being-stored-as-Other-in-ignite-td24227.html#a24239
?

If we are talking about HTTP JSON REST, then JSON does not have any decimal
type, it only has Double. Therefore I imagine that numbers will be
represented as doubles.
This is default behaviour of ObjectMapper which we happen to use, it is
configurable but I can't see how you can configure it with Ignite REST.

You could have your own ConnectorMessageInterceptor that will output them
as strings instead, I guess.

Regards,
-- 
Ilya Kasnacheev


чт, 4 окт. 2018 г. в 18:52, wt <waynetheron@gmail.com>:

> version 2.6
>
>
> i have a tool that creates ignite tables and it is passing in a class with
> the type as decimal but it is coming out as double in when i query the
> metadata using rest in ignite? The documentation explicitly states c#
> decimal converts to java.math.bigdecimal which is not a floating point like
> double
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Mime
View raw message