You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/06/01 07:18:33 UTC

[doris] branch master updated: [Fix](Nereids) Fix function test case unstable by adding order by (#20295)

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

morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 24fcc2011f [Fix](Nereids) Fix function test case unstable by adding order by (#20295)
24fcc2011f is described below

commit 24fcc2011ffe34e1ae8dceace49fa9f80a3f0382
Author: LiBinfeng <46...@users.noreply.github.com>
AuthorDate: Thu Jun 1 15:18:25 2023 +0800

    [Fix](Nereids) Fix function test case unstable by adding order by (#20295)
    
    Nereids function case do not have a order by clause, so the result will be unstable, so order by is added to ensure stability.
---
 regression-test/suites/nereids_syntax_p0/function.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/regression-test/suites/nereids_syntax_p0/function.groovy b/regression-test/suites/nereids_syntax_p0/function.groovy
index 9eee92daa0..3f05deb09a 100644
--- a/regression-test/suites/nereids_syntax_p0/function.groovy
+++ b/regression-test/suites/nereids_syntax_p0/function.groovy
@@ -81,7 +81,7 @@ suite("nereids_function") {
                 a.number as num1, b.number as num2
             from
                 numbers("number" = "10") a
-                inner join numbers("number" = "10") b on a.number=b.number;
+                inner join numbers("number" = "10") b on a.number=b.number order by 1,2;
         """
         result([[0L, 0L], [1L, 1L], [2L, 2L], [3L, 3L], [4L, 4L], [5L, 5L], [6L, 6L], [7L, 7L], [8L, 8L], [9L, 9L]])
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org