Skip to content

Commit

Permalink
tdengine q11 done
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuheng55555 committed Jan 2, 2024
1 parent 48c95e7 commit 4c787de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class TDengine implements IDatabase {
private static final String USE_DB = "use %s";
private static final String SUPER_TABLE_NAME = "device";
private static final String ORDER_BY_TIME_DESC = " order by time desc ";
private static final String ORDER_BY_WSTART_DESC = " order by _wstart desc ";
private static final AtomicBoolean isInit = new AtomicBoolean(false);

private final String CREATE_STABLE;
Expand Down Expand Up @@ -407,7 +408,7 @@ public Status groupByQueryOrderByDesc(GroupByQuery groupByQuery) {
addWhereClause(
sqlHeader, groupByQuery, null, getTableNameFilterForAlignByDevice(groupByQuery));
sql = addGroupByClause(sql, groupByQuery.getGranularity());
sql += ORDER_BY_TIME_DESC;
sql += ORDER_BY_WSTART_DESC;
return addTailClausesAndExecuteQueryAndGetStatus(sql);
}

Expand Down

0 comments on commit 4c787de

Please sign in to comment.