InfluxDB: Flux: handle boolean data-columns (#34479) (#34670)

* InfluxDB: Flux: handle boolean data-columns

* normalize data-type strings based on documentation

* reference missing data type

(cherry picked from commit ab26c4dfa4)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-25 16:54:26 +01:00
committed by GitHub
parent 7319caaa63
commit ef05f687ca
6 changed files with 63 additions and 18 deletions
+9
View File
@@ -0,0 +1,9 @@
#group,false,false,true,true,false,false,true,true,true
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,boolean,string,string,string
#default,_result,,,,,,,,
,result,table,_start,_stop,_time,_value,_field,_measurement,direction
,,0,2021-05-20T08:36:26.7Z,2021-05-20T09:36:26.7Z,2021-05-20T09:35:39.6Z,true,exitcode,x,left
,,0,2021-05-20T08:36:26.7Z,2021-05-20T09:36:26.7Z,2021-05-20T09:35:43.0Z,false,exitcode,x,left
,,1,2021-05-20T08:36:26.7Z,2021-05-20T09:36:26.7Z,2021-05-20T09:35:47.3Z,false,exitcode,x,right
,,1,2021-05-20T08:36:26.7Z,2021-05-20T09:36:26.7Z,2021-05-20T09:35:49.6Z,true,exitcode,x,right
1 #group false false true true false false true true true
2 #datatype string long dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 boolean string string string
3 #default _result
4 result table _start _stop _time _value _field _measurement direction
5 0 2021-05-20T08:36:26.7Z 2021-05-20T09:36:26.7Z 2021-05-20T09:35:39.6Z true exitcode x left
6 0 2021-05-20T08:36:26.7Z 2021-05-20T09:36:26.7Z 2021-05-20T09:35:43.0Z false exitcode x left
7 1 2021-05-20T08:36:26.7Z 2021-05-20T09:36:26.7Z 2021-05-20T09:35:47.3Z false exitcode x right
8 1 2021-05-20T08:36:26.7Z 2021-05-20T09:36:26.7Z 2021-05-20T09:35:49.6Z true exitcode x right