Skip to content

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

@Willena

Description

@Willena

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy