You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2015/08/28 10:59:45 UTC

[jira] [Created] (HIVE-11679) SemanticAnalysis of "a=1" can result in a new Configuration() object

Gopal V created HIVE-11679:
------------------------------

             Summary: 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


{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)