RelationalAI / rai-sdk-java

The RelationalAI Software Development Kit (SDK) for Java.
Apache License 2.0
5 stars 1 forks source link

Integer return values are `Double` objects in response #4

Open gbrgr opened 2 years ago

gbrgr commented 2 years ago

When I issue the query

response = client.execute(database, engine, "def output = 1", false);

(more generally, this concerns any integer column contained within the output), then response looks like this:

image

That is, integer response values seem to be stored as Doubles due to JSON serialization. I guess this is not expected @bradlo?

gbrgr commented 2 years ago

Addition: For PURE integration, I in the meantime included this hotfix: https://github.com/RelationalAI/legend-pure/commit/cfc77e41b09a3667badd453933c5ee79bfe0a9d9

billscheidel-rai commented 1 year ago

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-4734.

This link is only accessible to employees of RelationalAI.