EmmyMiao87 commented on a change in pull request #5689:
URL: https://github.com/apache/incubator-doris/pull/5689#discussion_r618320920



##########
File path: fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
##########
@@ -255,15 +259,15 @@ private void genExecFragment(ExportStmt stmt) throws 
UserException {
         plan();
     }
 
-    private void registerToDesc(ExportStmt stmt) {
+    private void registerToDesc() {
         TableRef ref = new TableRef(tableName, null, partitions == null ? null 
: new PartitionNames(false, partitions));
         BaseTableRef tableRef = new BaseTableRef(ref, exportTable, tableName);
         exportTupleDesc = desc.createTupleDescriptor();
         exportTupleDesc.setTable(exportTable);
         exportTupleDesc.setRef(tableRef);
-        this.exportColumns = stmt.getColumns();
         for (Column col : exportTable.getBaseSchema()) {
-            if(!this.exportColumns.isEmpty() && 
this.exportColumns.contains(col.getName().toLowerCase())) {
+            String colName = col.getName().toLowerCase();
+            if (!this.exportColumns.isEmpty() && 
this.exportColumns.contains(colName)) {

Review comment:
       ```suggestion
               if (this.exportColumns !=null && 
this.exportColumns.contains(colName)) {
   ```
   
   




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

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