Yin Huai created HIVE-3493: ------------------------------ Summary: aggName of SemanticAnalyzer.getGenericUDAFEvaluator is generated in two different ways Key: HIVE-3493 URL: https://issues.apache.org/jira/browse/HIVE-3493 Project: Hive Issue Type: Bug Reporter: Yin Huai Assignee: Yin Huai Priority: Minor
aggName in org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getGenericUDAFEvaluator(String, ArrayList<ExprNodeDesc>, ASTNode, boolean, boolean) is generated by two different ways. One is String aggName = value.getChild(0).getText(); and another is String aggName = unescapeIdentifier(value.getChild(0).getText());. When a aggregation function is involved in a view, we may get a error. You can try the query below (from create_view.q) to replay the error. {code:sql} set hive.map.aggr=false; CREATE TEMPORARY FUNCTION test_max AS 'org.apache.hadoop.hive.ql.udf.UDAFTestMax'; CREATE VIEW view9(m) AS SELECT test_max(length(value)) FROM src; DESCRIBE EXTENDED view9; DESCRIBE FORMATTED view9; SELECT * FROM view9; {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira