BUG - .net decimal type creating ignite table produces double

classic Classic list List threaded Threaded
6 messages Options
wt wt
Reply | Threaded
Open this post in threaded view
|

BUG - .net decimal type creating ignite table produces double

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/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: BUG - .net decimal type creating ignite table produces double

?

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 <[hidden email]>:
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/
wt wt
Reply | Threaded
Open this post in threaded view
|

Re: BUG - .net decimal type creating ignite table produces double

hi

i am referring to c# classes that have properties that are decimal types. If
i create caches with those classes the data type in ignite is double. Now
admittedly i am interrogating schema information using the rest meta but i
would have though that the data types returned are not schema bound and just
text.  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: BUG - .net decimal type creating ignite table produces double

Hello!

Can you please show an example of REST request and its response?

Regards,
--
Ilya Kasnacheev


ср, 10 окт. 2018 г. в 16:43, wt <[hidden email]>:
hi

i am referring to c# classes that have properties that are decimal types. If
i create caches with those classes the data type in ignite is double. Now
admittedly i am interrogating schema information using the rest meta but i
would have though that the data types returned are not schema bound and just
text. 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
wt wt
Reply | Threaded
Open this post in threaded view
|

Re: BUG - .net decimal type creating ignite table produces double

okay i think i need to close this- not sure why but running it on my local
machine produces a double but on a server it is coming as a decimal. Must be
an issue of some sort with my local pc so i think we can ignore this.
thanks though for getting back to me



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: BUG - .net decimal type creating ignite table produces double

Hello!

You can try removing work/marshaller subdir from your IGNITE_HOME (typically it is in the binary distribution directory). After restart your types should refresh.

Regards,
--
Ilya Kasnacheev


ср, 10 окт. 2018 г. в 17:14, wt <[hidden email]>:
okay i think i need to close this- not sure why but running it on my local
machine produces a double but on a server it is coming as a decimal. Must be
an issue of some sort with my local pc so i think we can ignore this.
thanks though for getting back to me



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/