influxdata / influxdata/influxdb-client-java
InfluxQLQueryApi.queryJson should not transform all values to String
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 477
- Fork
- 129
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da InfluxQLQueryApi.queryJson e traccia il modo in cui ValueExtractor gestisce i valori della risposta JSON di InfluxDB. Verifica il comportamento dell’API di query esistente e dei test, se presenti, per determinare dove i valori vengono convertiti in String. Il lavoro è completato quando queryJson preserva per impostazione predefinita i tipi di risposta che non sono String, continuando a supportare un ValueExtractor fornito esplicitamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, json
- Ambito
- api, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100