influxdb-client 2.9.0.pre.6293 → 2.9.0.pre.6326
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/influxdb2/client/flux_csv_parser.rb +1 -1
- data/test/influxdb/query_api_test.rb +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6cb295165aaf2b2c7258a33d5c8b97a304df8d1a57a7922b87add1fa2d80e0d
|
4
|
+
data.tar.gz: b3bbb0e1c859851eae554301a0859dc63ab974e02d91481fede961ccc9174691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e118873cab062084c16c66de8d92bafd7e3dc7d8f0d86186d5966003b9378cfda269ed897e4e9405958f27289490bfedb0cc6cdd4f8dff51f5cc938dd60df02
|
7
|
+
data.tar.gz: 0ebf3f5058918f06247c7c7fe41ca29308a6ba8c219ffa9cabeaf316bd9768f84da8e250290cb4c6f91495944b8efd606d67cb8d49a9ff99375245e7a3dd7fe4
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
### Bug Fixes
|
4
4
|
1. [#123](https://github.com/influxdata/influxdb-client-ruby/pull/123): Duplicate columns warning shows in improper situations
|
5
|
+
1. [#124](https://github.com/influxdata/influxdb-client-ruby/pull/124): Query return type is `Array` instead of `Hash`
|
5
6
|
|
6
7
|
## 2.8.0 [2022-10-27]
|
7
8
|
|
@@ -144,4 +144,22 @@ class QueryApiTest < MiniTest::Test
|
|
144
144
|
assert_requested(:post, 'http://localhost:8086/api/v2/query?org=my-org',
|
145
145
|
times: 1, headers: headers)
|
146
146
|
end
|
147
|
+
|
148
|
+
def test_query_result_type
|
149
|
+
stub_request(:post, 'http://localhost:8086/api/v2/query?org=my-org')
|
150
|
+
.to_return(body: SUCCESS_DATA)
|
151
|
+
|
152
|
+
client = InfluxDB2::Client.new('http://localhost:8086', 'my-token',
|
153
|
+
bucket: 'my-bucket',
|
154
|
+
org: 'my-org',
|
155
|
+
use_ssl: false)
|
156
|
+
|
157
|
+
bucket = 'my-bucket'
|
158
|
+
result = client.create_query_api
|
159
|
+
.query(query: "from(bucket:\"#{bucket}\") |> range(start: 1970-01-01T00:00:00.000000001Z) |> last()")
|
160
|
+
|
161
|
+
assert_equal 1, result.length
|
162
|
+
assert_equal 4, result[0].records.length
|
163
|
+
assert_equal Array, result.class
|
164
|
+
end
|
147
165
|
end
|