hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (Commented) (JIRA)" <>
Subject [jira] [Commented] (HIVE-2470) Improve support for Constant Object Inspectors
Date Mon, 03 Oct 2011 01:32:35 GMT

] commented on HIVE-2470:

This is an automatically generated e-mail. To reply, visit:

(Updated 2011-10-03 01:31:21.490736)

Review request for hive, Carl Steinbach, John Sichi, and Igor Kabiljo.


Take suggestions after discussion with ikabiljo and jvs.  Get rid of constantfoldablegenericudf
in favor of just having both the exprnode evaluator and desc initialize /w constant folding
and cache values for all non-stateful, deterministic generic udfs.


ConstantObjectInspectors were introduced in a previous patch so that UDF's could have access
to constant values at initialize time.  This diff adds the following improvements:

1.) Extends this functionality beyond primitive types to List/Map types.
2.) Fixes a bug in ExprNodeGenericFuncDesc where the constant value would not propagate beyond
one level of evaluation.
3.) Adds a helper class to make functions constant-aware.  By inheriting from this class they
return constant OIs if all their arguments are constant, and they cache the result so that
computation is only done during initialize().  Some functions such as ARRAY/IF/MAP have been

This addresses bug HIVE-2470.

Diffs (updated)

  ql/src/java/org/apache/hadoop/hive/ql/exec/ ebc236d 
  ql/src/java/org/apache/hadoop/hive/ql/plan/ 7da5d6a 
  ql/src/java/org/apache/hadoop/hive/ql/udf/generic/ 570e408 
  ql/src/test/queries/clientpositive/constant_prop.q PRE-CREATION 
  ql/src/test/results/clientpositive/constant_prop.q.out PRE-CREATION 
  serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ 2c1a7e0




ant test



> Improve support for Constant Object Inspectors
> ----------------------------------------------
>                 Key: HIVE-2470
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Jonathan Chang
>            Assignee: Jonathan Chang
>         Attachments: HIVE-1360.part2.patch, HIVE-2470.patch
> ConstantObjectInspectors are nice but they need to be more widely supported and used.
 In particular,
> * More functions need to be using them.
> * There need to be facilities for propagating constness.
> * Support for complex types must be added.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message