You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by we...@apache.org on 2026/05/14 02:14:31 UTC

(iotdb) branch fix-last-alias created (now fd48abcb089)

This is an automated email from the ASF dual-hosted git repository.

Wei-hao-Li pushed a change to branch fix-last-alias
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at fd48abcb089 fix order

This branch includes the following new commits:

     new fd48abcb089 fix order

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: fix order

Posted by we...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

Wei-hao-Li pushed a commit to branch fix-last-alias
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit fd48abcb0896f7223011490f92bc39fae7b960ac
Author: Weihao Li <18...@163.com>
AuthorDate: Thu May 14 10:14:08 2026 +0800

    fix order
    
    Signed-off-by: Weihao Li <18...@163.com>
---
 .../apache/iotdb/db/it/last/IoTDBLastQueryAliasIT.java   | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/integration-test/src/test/java/org/apache/iotdb/db/it/last/IoTDBLastQueryAliasIT.java b/integration-test/src/test/java/org/apache/iotdb/db/it/last/IoTDBLastQueryAliasIT.java
index 4772804f384..3e83a4ab5a2 100644
--- a/integration-test/src/test/java/org/apache/iotdb/db/it/last/IoTDBLastQueryAliasIT.java
+++ b/integration-test/src/test/java/org/apache/iotdb/db/it/last/IoTDBLastQueryAliasIT.java
@@ -92,9 +92,13 @@ public class IoTDBLastQueryAliasIT {
           "1,root.test.d1.alias1,3,INT32,",
         };
     resultSetEqualTest(
-        "select last alias3,alias2,alias1 from root.test.d1", expectedHeader, retArray);
+        "select last alias3,alias2,alias1 from root.test.d1 order by timeseries desc",
+        expectedHeader,
+        retArray);
     resultSetEqualTest(
-        "select last alias3,alias2,alias1 from root.test.d1", expectedHeader, retArray);
+        "select last alias3,alias2,alias1 from root.test.d1 order by timeseries desc",
+        expectedHeader,
+        retArray);
 
     retArray =
         new String[] {
@@ -123,9 +127,13 @@ public class IoTDBLastQueryAliasIT {
           "2,root.test.d2.alias1,4,INT32,",
         };
     resultSetEqualTest(
-        "select last alias3,alias2,alias1 from root.test.d2", expectedHeader, retArray);
+        "select last alias3,alias2,alias1 from root.test.d2 order by timeseries desc",
+        expectedHeader,
+        retArray);
     resultSetEqualTest(
-        "select last alias3,alias2,alias1 from root.test.d2", expectedHeader, retArray);
+        "select last alias3,alias2,alias1 from root.test.d2 order by timeseries desc",
+        expectedHeader,
+        retArray);
 
     retArray =
         new String[] {