hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11679) SemanticAnalysis of "a=1" can result in a new Configuration() object
Date Thu, 10 Sep 2015 02:34:46 GMT

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

Mime
View raw message