Skip to content

Commit

Permalink
bugfix timestamp is null (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
qyaaaa authored Nov 6, 2023
1 parent 9331d74 commit 0123842
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ public Map<String, List<Value>> getHistoryMetricData(Long monitorId, String app,
ResultSet resultSet = statement.executeQuery(selectSql);
while (resultSet.next()) {
Timestamp ts = resultSet.getTimestamp(1);
if (ts == null) {
log.error("warehouse tdengine query result timestamp is null, ignore. {}.", selectSql);
continue;
}
String instanceValue = resultSet.getString(2);
if (instanceValue == null || "".equals(instanceValue)) {
instanceValue = "";
Expand Down

0 comments on commit 0123842

Please sign in to comment.