I am writing pdxInstance
s to GemFire using the sequence: rabbitmq => springxd => gemfire
.
If I put this JSON into rabbitmq {'ID':11,'value':5}
, value
appears as a byte value in GemFire. If I put {'ID':11,'value':500}
, value
appears as a word and if I put {'ID':11,'value':50000}
it appears as an Integer.
A problem arises when I query data from GemFire and order them. For example, if I use a query such as select * from /my_region order by value
it fails, saying it cannot compare a byte with a word (or byte with an integer).
Is there any way to declare the data type in JSON? Or any other method to get rid of this problem?