hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9096) GenericUDF may be left unclosed in PartitionPrune#visitCall()
Date Tue, 16 Dec 2014 20:43:14 GMT

     [ https://issues.apache.org/jira/browse/HIVE-9096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HIVE-9096:
-------------------------
    Status: Patch Available  (was: Open)

> GenericUDF may be left unclosed in PartitionPrune#visitCall()
> -------------------------------------------------------------
>
>                 Key: HIVE-9096
>                 URL: https://issues.apache.org/jira/browse/HIVE-9096
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>         Attachments: HIVE-9096.patch
>
>
> In ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/PartitionPrune.java
:
> {code}
>       GenericUDF hiveUDF = SqlFunctionConverter.getHiveUDF(call.getOperator(),
>           call.getType(), call.operands.size());
>       if (hiveUDF != null &&
>           !FunctionRegistry.isDeterministic(hiveUDF)) {
>         return null;
>       }
> {code}
> hiveUDF should be closed upon return.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message