Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxQLQueryApi.queryJson should not transform all values to String #820

Open
Willena opened this issue Feb 3, 2025 · 0 comments
Open

Comments

@Willena
Copy link

Willena commented Feb 3, 2025

Proposal:
It would be nice if influxQLQueryApi.queryJson() can preserve field types instead of converting everything to Strings.
ValueExtractor should expose an API with raw types.

Current behavior:
Unless a ValueExtractor is present, every values get transformed to String even of the InfluxDB Json result contains a non string value.

Desired behavior:
Unless a value extractor is specified, the JSON result should preserve original response types as much as possible

Alternatives considered:
For now, provide a value extractor that parse each String values.
It works but doing twice the job: for a number value it get read by Gson as Number then the client converts it to String then manually converted to back to a number.

Use case:
All use cases using influxQLQueryApi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant