deniskuzZ commented on code in PR #5512: URL: https://github.com/apache/hive/pull/5512#discussion_r1813285207
########## ql/src/java/org/apache/hadoop/hive/ql/parse/ImportSemanticAnalyzer.java: ########## @@ -1108,7 +1105,7 @@ private static void createRegularImportTasks( if (tblDesc.getLocation() != null) { tablePath = new Path(tblDesc.getLocation()); } else { - tablePath = wh.getDefaultTablePath(parentDb, tblDesc.getTableName(), tblDesc.isExternal()); + tablePath = getTableDataLocation(wh, tblDesc, x); Review Comment: why don't you move above `if (tblDesc.getLocation() != null)` into the helper method? -- 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