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 and tomsun28 committed Jan 16, 2024
1 parent ce54464 commit 8afc0e3
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 8afc0e3

Please sign in to comment.