deniskuzZ commented on code in PR #4392: URL: https://github.com/apache/hive/pull/4392#discussion_r1226565221
########## ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java: ########## @@ -295,16 +296,25 @@ private void analyzeLoad(ASTNode ast) throws SemanticException { throw new SemanticException(ErrorMsg.DML_AGAINST_VIEW.getMsg()); } if (ts.tableHandle.isNonNative()) { - // launch a tez job - StorageFormatDescriptor ss = - ts.tableHandle.getStorageHandler().getStorageFormatDescriptor(ts.tableHandle.getTTable()); - if (ss != null) { - inputFormatClassName = ss.getInputFormat(); - serDeClassName = ss.getSerde(); - reparseAndSuperAnalyze(ts.tableHandle, fromURI); + HiveStorageHandler storageHandler = ts.tableHandle.getStorageHandler(); + if (storageHandler.supportsAppendData(ts.tableHandle.getTTable())) { Review Comment: i am not sure when copy and load could be preffered over simple listing -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org