You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2015/09/10 04:34:46 UTC
[jira] [Updated] (HIVE-11679) SemanticAnalysis of "a=1" can result
in a new Configuration() object
[ https://issues.apache.org/jira/browse/HIVE-11679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Navis updated HIVE-11679:
-------------------------
Attachment: HIVE-11679.1.patch.txt
Attaching patch for preliminary test
> 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
> Attachments: HIVE-11679.1.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)