grafana/pkg/tsdb/influxdb/influxql/testdata/many_columns.table.golden.jsonc
ismail simsek 2b0e7afb4e
InfluxDB: Fix an edge case while parsing table response (#78802)
* Prepare the test files

* use json files everywhere

* update golden json files

* disable update

* update test file

* fix naming

* lint

* InfluxDB: Add metadata information to first frame only (#78664)

* executedString in first frame only

* lint

* fix tests

* update tests

* don't update

* linting

* update

* update again

* handle nil values

* append in the right array

* add comments

* remove redundant if condition
2023-12-01 18:31:49 +01:00

446 lines
14 KiB
Plaintext

// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "preferredVisualisationType": "table",
// "executedQueryString": "Test raw query"
// }
// Name: series_name
// Dimensions: 18 Fields by 9 Rows
// +-----------------------------------+--------------------+------------------+--------------------+-----------------+--------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+-----------------+------------------+------------------+
// | Name: Time | Name: series_tag_2 | Name: col_1_name | Name: timestamp | Name: c_name | Name: mem_used | Name: dbytes | Name: ubytes | Name: dused | Name: jitter | Name: free | Name: late | Name: core | Name: ploss | Name: idletime | Name: sol | Name: isp | Name: vpn |
// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: |
// | Type: []time.Time | Type: []*string | Type: []*string | Type: []*float64 | Type: []*string | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*float64 | Type: []*string | Type: []*float64 | Type: []*float64 |
// +-----------------------------------+--------------------+------------------+--------------------+-----------------+--------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+-----------------+------------------+------------------+
// | 2023-03-13 16:07:03.474 +0000 UTC | 3167640 | 589051IR | 1.678734134503e+12 | | 16.726718841369227 | null | null | 53 | null | 48.72 | null | null | null | null | BYOD | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 0 | tertggdfs | 1.678734188679e+12 | | 23.432988173518233 | null | null | 64 | null | 70.92 | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 0 | null | null | Unknown | null | null | null | null | null | null | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 2249908 | ASDWQ234 | 1.678734167565e+12 | | 10.772527844239201 | null | null | 25 | null | 58.33 | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 3415374 | 123SDQWE | 1.678734222642e+12 | ADSADS | 40.61198862661182 | null | null | 33 | null | 51.41 | null | null | null | null | SCCM | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 0 | null | null | Unknown | null | null | null | null | null | null | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 2191438 | SDF32R | 1.678734212872e+12 | | 15.267734587695077 | null | null | 43 | null | 58.43 | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 0 | null | null | Unknown | null | null | null | null | null | null | null | null | null | null | null | null | null |
// | 2023-03-13 16:07:03.474 +0000 UTC | 0 | null | null | Unknown | null | null | null | null | null | null | null | null | null | null | null | null | null |
// +-----------------------------------+--------------------+------------------+--------------------+-----------------+--------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+------------------+-----------------+------------------+------------------+
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "series_name",
"meta": {
"typeVersion": [
0,
0
],
"preferredVisualisationType": "table",
"executedQueryString": "Test raw query"
},
"fields": [
{
"name": "Time",
"type": "time",
"typeInfo": {
"frame": "time.Time"
}
},
{
"name": "series_tag_2",
"type": "string",
"typeInfo": {
"frame": "string",
"nullable": true
},
"config": {
"displayNameFromDS": "series_tag_2"
}
},
{
"name": "col_1_name",
"type": "string",
"typeInfo": {
"frame": "string",
"nullable": true
},
"config": {
"displayNameFromDS": "col_1_name"
}
},
{
"name": "timestamp",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "timestamp"
}
},
{
"name": "c_name",
"type": "string",
"typeInfo": {
"frame": "string",
"nullable": true
},
"config": {
"displayNameFromDS": "c_name"
}
},
{
"name": "mem_used",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "mem_used"
}
},
{
"name": "dbytes",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "dbytes"
}
},
{
"name": "ubytes",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "ubytes"
}
},
{
"name": "dused",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "dused"
}
},
{
"name": "jitter",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "jitter"
}
},
{
"name": "free",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "free"
}
},
{
"name": "late",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "late"
}
},
{
"name": "core",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "core"
}
},
{
"name": "ploss",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "ploss"
}
},
{
"name": "idletime",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "idletime"
}
},
{
"name": "sol",
"type": "string",
"typeInfo": {
"frame": "string",
"nullable": true
},
"config": {
"displayNameFromDS": "sol"
}
},
{
"name": "isp",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "isp"
}
},
{
"name": "vpn",
"type": "number",
"typeInfo": {
"frame": "float64",
"nullable": true
},
"config": {
"displayNameFromDS": "vpn"
}
}
]
},
"data": {
"values": [
[
1678723623474,
1678723623474,
1678723623474,
1678723623474,
1678723623474,
1678723623474,
1678723623474,
1678723623474,
1678723623474
],
[
"3167640",
"0",
"0",
"2249908",
"3415374",
"0",
"2191438",
"0",
"0"
],
[
"589051IR",
"tertggdfs",
null,
"ASDWQ234",
"123SDQWE",
null,
"SDF32R",
null,
null
],
[
1678734134503,
1678734188679,
null,
1678734167565,
1678734222642,
null,
1678734212872,
null,
null
],
[
"",
"",
"Unknown",
"",
"ADSADS",
"Unknown",
"",
"Unknown",
"Unknown"
],
[
16.726718841369227,
23.432988173518233,
null,
10.772527844239201,
40.61198862661182,
null,
15.267734587695077,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
53,
64,
null,
25,
33,
null,
43,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
48.72,
70.92,
null,
58.33,
51.41,
null,
58.43,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
"BYOD",
null,
null,
null,
"SCCM",
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
],
[
null,
null,
null,
null,
null,
null,
null,
null,
null
]
]
}
}
]
}