KiranVelumuri commented on code in PR #5651: URL: https://github.com/apache/hive/pull/5651#discussion_r2137401150
########## 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; Review Comment: I simply used what was already in line 4980. It could be simplified -- 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