KiranVelumuri commented on code in PR #5651: URL: https://github.com/apache/hive/pull/5651#discussion_r2137405673
########## ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java: ########## @@ -5000,6 +5002,29 @@ && isRegex(unescapeIdentifier(expr.getChild(1).getText()), conf)) { if (isUDTF) { output = genUDTFPlan(genericUDTF, udtfTableAlias, udtfColAliases, qb, output, outerLV); + + if(!HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_CBO_ENABLED) + && qb.getParseInfo().getDestSchemaForClause(dest) != null) { + List<ExprNodeDesc> trfColList = transformColList(colList); + + selectStar = selectStar && exprList.getChildCount() == posn + 1; + + out_rwsch = handleInsertStatementSpec(trfColList, dest, opParseCtx.get(output).getRowResolver(), qb, selExprList); + + List<String> trfColumnNames = new ArrayList<>(); + Map<String, ExprNodeDesc> trfColExprMap = new HashMap<>(); + for (int i = 0; i < trfColList.size(); i++) { + String outputCol = getColumnInternalName(i); + trfColExprMap.put(outputCol, trfColList.get(i)); + trfColumnNames.add(outputCol); Review Comment: I repeated what was done in lines 4986-4990. -- 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