jackwener commented on code in PR #8513:
URL: https://github.com/apache/incubator-doris/pull/8513#discussion_r879075198


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java:
##########
@@ -320,11 +320,16 @@ private static SelectList 
addMissingAggregationColumns(SelectList selectList,
      */
     private static void rewriteUnionStatement(SetOperationStmt stmt, Analyzer 
analyzer)
             throws AnalysisException {
-        for (SetOperationStmt.SetOperand operand : stmt.getOperands()) {
-            Preconditions.checkState(operand.getQueryStmt() instanceof 
SelectStmt);
-            QueryStmt rewrittenQueryStmt = StmtRewriter.rewriteSelectStatement(
-                    (SelectStmt) operand.getQueryStmt(), 
operand.getAnalyzer());
-            operand.setQueryStmt(rewrittenQueryStmt);
+        for (SetOperationStmt.SetOperand operand: stmt.getOperands()) {

Review Comment:
   We can fix those `checkstyle` problem by following hint.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to