You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "yiguolei (via GitHub)" <gi...@apache.org> on 2023/03/19 10:04:23 UTC

[GitHub] [doris] yiguolei commented on a diff in pull request #17912: [Bug](planner) fix core dump when lateral view above union node and have predicate

yiguolei commented on code in PR #17912:
URL: https://github.com/apache/doris/pull/17912#discussion_r1141321661


##########
regression-test/suites/query_p0/lateral_view/test_with_view.groovy:
##########
@@ -32,4 +32,29 @@ suite("lateral_view_with_inline_view") {
     example1 lateral view explode([1,2,3]) tmp1 as e1 where col4<e1;
     """
 
+    qt_sql """
+    select
+        e1 hour,
+        sum(money)
+    from
+        (
+            select
+                *
+            from
+                (
+                    select
+                        1 hour,
+                        10 money
+                    union
+                    all
+                    select
+                        3 hour,
+                        10 money
+                ) t lateral view explode([23,24]) tmp1 as e1
+            where
+                hour <= e1
+        ) tt
+    group by
+        1;
+    """

Review Comment:
   add order by to make the test stable



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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