Skip to content

Commit e8b6243

Browse files
committed
docs: Fix doc for incorrect use of PointValues
1 parent ec43aea commit e8b6243

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/ISSUE_TEMPLATE/BUG_REPORT.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ body:
2727
label: Code sample to reproduce problem
2828
description: Provide a code sample that reproduces the problem
2929
value: |
30-
```csharp
30+
```java
3131
```
3232
validations:
3333
required: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ String sql1 = "select time,location,value from temperature order by time desc li
165165
try (Stream<PointValues> stream = client.queryPoints(sql1, QueryOptions.DEFAULTS)) {
166166
stream.forEach(
167167
(PointValues p) -> {
168-
var time = p.getField("time", LocalDateTime.class);
169-
var location = p.getField("location", String.class);
168+
var time = p.getTimestamp();
169+
var location = p.getTag("location");
170170
var value = p.getField("value", Double.class);
171171

172172
System.out.printf("| %-8s | %-8s | %-30s |%n", location, value, time);

0 commit comments

Comments
 (0)