[ https://issues.apache.org/jira/browse/HIVE-11679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Navis updated HIVE-11679: ------------------------- Attachment: HIVE-11679.3.patch.txt Just updated negative test results. > SemanticAnalysis of "a=1" can result in a new Configuration() object > -------------------------------------------------------------------- > > Key: HIVE-11679 > URL: https://issues.apache.org/jira/browse/HIVE-11679 > Project: Hive > Issue Type: Bug > Components: Query Planning > Affects Versions: 1.3.0, 2.0.0 > Reporter: Gopal V > Assignee: Navis > Attachments: HIVE-11679.1.patch.txt, HIVE-11679.2.patch.txt, > HIVE-11679.3.patch.txt > > > {code} > public static ExprNodeGenericFuncDesc newInstance(GenericUDF genericUDF, > String funcText, > List<ExprNodeDesc> children) throws UDFArgumentException { > ... > if (genericUDF instanceof GenericUDFBaseCompare && children.size() == 2) { > TypeInfo oiTypeInfo0 = children.get(0).getTypeInfo(); > TypeInfo oiTypeInfo1 = children.get(1).getTypeInfo(); > SessionState ss = SessionState.get(); > Configuration conf = (ss != null) ? ss.getConf() : new Configuration(); > {code} > This is both a SessionState.get() which is a threadlocal lookup or worse, a > new Configuration() which means XML parsing of multiple files for each > equality expression in the query. -- This message was sent by Atlassian JIRA (v6.3.4#6332)