hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <>
Subject [jira] [Commented] (HIVE-11462) GenericUDFStruct should constant fold at compile time
Date Thu, 06 Aug 2015 03:46:04 GMT


Gopal V commented on HIVE-11462:

bq. my earlier point (1) was that we don't use constantValues to instantiate the constant
struct object inspector via ObjectInspectorFactory.getStandardConstantStructObjectInspector();
we use ret instead.

ret is a transient so the result-set is never serialized, but good call.

I can rewrite that loop much more cleanly to call evaluate() only if the result is constant.

> GenericUDFStruct should constant fold at compile time
> -----------------------------------------------------
>                 Key: HIVE-11462
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 2.0.0
>            Reporter: Gopal V
>         Attachments: HIVE-11462.1.patch, HIVE-11462.WIP.patch
> HIVE-11428 introduces a constant Struct Object, which is available for the runtime operators
to assume as a constant parameter.
> This operator isn't constant folded during compilation since the UDF returns a complex
type, which is logged as warning by the constant propogation layer.

This message was sent by Atlassian JIRA

View raw message