This is an automated email from the ASF dual-hosted git repository.

jiafengzheng pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 7f4f8ddaef [fix](export)Modify the error message of the data export 
view (#23407)
7f4f8ddaef is described below

commit 7f4f8ddaefb8b961fc2fe659f1b9adad802c11b9
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Wed Aug 23 22:10:25 2023 +0800

    [fix](export)Modify the error message of the data export view (#23407)
    
    * Modify the error message of the data export view
---
 fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java 
b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
index cbb6f403aa..fe9420c583 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
@@ -455,7 +455,7 @@ public class ExportJob implements Writable {
         return olapScanNode;
     }
 
-    private PlanFragment genPlanFragment(Table.TableType type, ScanNode 
scanNode) throws UserException {
+   private PlanFragment genPlanFragment(Table.TableType type, ScanNode 
scanNode) throws UserException {
         PlanFragment fragment = null;
         switch (exportTable.getType()) {
             case OLAP:
@@ -469,6 +469,8 @@ public class ExportJob implements Writable {
                         new PlanFragmentId(nextId.getAndIncrement()), 
scanNode, DataPartition.UNPARTITIONED);
                 break;
             default:
+                LOG.info("Table Type unsupport export, ExportTable type : {}", 
exportTable.getType());
+                throw new UserException("Table Type unsupport export :" + 
exportTable.getType());
                 break;
         }
         fragment.setOutputExprs(createOutputExprs());
@@ -483,7 +485,7 @@ public class ExportJob implements Writable {
         }
 
         return fragment;
-    }
+    }    
 
     private List<Expr> createOutputExprs() {
         List<Expr> outputExprs = Lists.newArrayList();


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

Reply via email to