Skip to content

Commit 185e71e

Browse files
feat: add queryRows
1 parent 227c0b1 commit 185e71e

File tree

1 file changed

+3
-2
lines changed
  • src/test/java/com/influxdb/v3/client/integration

1 file changed

+3
-2
lines changed

src/test/java/com/influxdb/v3/client/integration/E2ETest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import com.influxdb.v3.client.Point;
4545
import com.influxdb.v3.client.PointValues;
4646
import com.influxdb.v3.client.config.ClientConfig;
47+
import com.influxdb.v3.client.query.QueryOptions;
4748
import com.influxdb.v3.client.write.WriteOptions;
4849
import com.influxdb.v3.client.write.WritePrecision;
4950

@@ -278,7 +279,7 @@ public void testQueryRows() throws Exception {
278279
}
279280

280281
@Test
281-
public void testQueryRowWithParam() throws Exception {
282+
public void testQueryRowWithParamOptions() throws Exception {
282283
try (InfluxDBClient client = InfluxDBClient.getInstance(
283284
System.getenv("TESTING_INFLUXDB_URL"),
284285
System.getenv("TESTING_INFLUXDB_TOKEN").toCharArray(),
@@ -324,7 +325,7 @@ public void testQueryRowWithParam() throws Exception {
324325
Map<String, Object> parameters = Map.of("testId", uuid);
325326
// Result set much be ordered by time
326327
String sql = String.format("Select * from %s where \"testId\"=$testId order by time", measurement);
327-
try (Stream<Map<String, Object>> stream = client.queryRows(sql, parameters)) {
328+
try (Stream<Map<String, Object>> stream = client.queryRows(sql, parameters, QueryOptions.DEFAULTS)) {
328329
List<Map<String, Object>> results = stream.collect(Collectors.toList());
329330
for (int i = 0; i <= 9; i++) {
330331
Map<String, Object> row = results.get(i);

0 commit comments

Comments
 (0)