wyb commented on a change in pull request #3819:
URL: https://github.com/apache/incubator-doris/pull/3819#discussion_r439289793
##########
File path: fe/src/main/java/org/apache/doris/load/BrokerFileGroup.java
##########
@@ -165,6 +170,33 @@ public void parse(Database db, DataDescription
dataDescription) throws DdlExcept
// FilePath
filePaths = dataDescription.getFilePaths();
+
+ if (dataDescription.isLoadFromTable()) {
+ String srcTableName = dataDescription.getSrcTableName();
+ // src table should be hive table
+ Table srcTable = db.getTable(srcTableName);
+ if (srcTable == null) {
+ throw new DdlException("Unknown table " + srcTableName + " in
database " + db.getFullName());
+ }
+ if (!(srcTable instanceof HiveTable)) {
+ throw new DdlException("Source table " + srcTableName + " is
not HiveTable");
+ }
+ // src table columns should include all columns of loaded table
Review comment:
Support later
----------------------------------------------------------------
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]