Skip to content

Commit 4bc058d

Browse files
committed
ORDER BY implementation for SELECT with limited columns
1 parent 7ab1316 commit 4bc058d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/src/main/java/com/blobcity/db/sql/statements/SelectExecutor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ else if(whereClause == null && aggOperations.isEmpty() && resultColumns.size() >
285285
if(selectNode.isDistinct()) {
286286
keepDistinct(resultMap);
287287
}
288+
if(orderByList != null) {
289+
orderResult(appId, tableName, orderByList, resultMap);
290+
}
288291
return produceResult(appId, tableName, sqlString, resultMap, limit, startTime);
289292
}
290293

0 commit comments

Comments
 (0)