Copilot commented on code in PR #49041:
URL: https://github.com/apache/doris/pull/49041#discussion_r2043509791


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/CreateMTMVInfo.java:
##########
@@ -117,7 +104,7 @@ public class CreateMTMVInfo {
     private final LogicalPlan logicalQuery;
     private String querySql;
     private final MTMVRefreshInfo refreshInfo;
-    private final List<ColumnDefinition> columns = Lists.newArrayList();
+    private List<ColumnDefinition> columns;

Review Comment:
   The 'columns' field is no longer initialized upon declaration, which could 
lead to null pointer issues if accessed before assignment. Consider 
initializing it to an empty list (e.g., Lists.newArrayList()).
   ```suggestion
       private List<ColumnDefinition> columns = Lists.newArrayList();
   ```



-- 
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