Skip to content

Commit

Permalink
bugfix TDengine missing first TS parameter (#964)
Browse files Browse the repository at this point in the history
Signed-off-by: impress <56623162+QZmp236478@users.noreply.github.com>
  • Loading branch information
QZmp236478 authored May 17, 2023
1 parent a1120c7 commit a58aae1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class HistoryTdEngineDataStorage extends AbstractHistoryDataStorage {
private static final String QUERY_HISTORY_SQL
= "SELECT ts, instance, `%s` FROM %s WHERE ts >= now - %s order by ts desc";
private static final String QUERY_HISTORY_INTERVAL_WITH_INSTANCE_SQL
= "SELECT first(`%s`), avg(`%s`), min(`%s`), max(`%s`) FROM %s WHERE instance = %s AND ts >= now - %s interval(4h)";
= "SELECT first(`ts`), first(`%s`), avg(`%s`), min(`%s`), max(`%s`) FROM %s WHERE instance = %s AND ts >= now - %s interval(4h)";
private static final String QUERY_INSTANCE_SQL
= "SELECT DISTINCT instance FROM %s WHERE ts >= now - 1w";

Expand Down

0 comments on commit a58aae1

Please sign in to comment.