sohardforaname commented on code in PR #19438:
URL: https://github.com/apache/doris/pull/19438#discussion_r1193448263


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java:
##########
@@ -2629,4 +2649,17 @@ private static Map<SlotRef, Expr> 
getExpectedBinaryPredicates(
             return null;
         }
     }
+
+    private boolean isAddDefaultOrderBy() {
+        if (ConnectContext.get() == null
+                || ConnectContext.get().getSessionVariable() == null
+                || 
!ConnectContext.get().getSessionVariable().isEnableDefaultOrder()) {
+            return false;

Review Comment:
   check only one TableRef already cover the case. We cannot use only literal 
view at from clause.



-- 
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-unsubscr...@doris.apache.org

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


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

Reply via email to