aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/v0.13.1
diff options
context:
space:
mode:
authorCheng Hao <hao.cheng@intel.com>2014-10-27 20:42:05 -0700
committerMichael Armbrust <michael@databricks.com>2014-10-27 20:42:05 -0700
commit418ad83fe113f2f90552eb7247670279b55aed28 (patch)
treeca5a99abff09519e18c17e299938841242b76685 /sql/hive/v0.13.1
parent7e3a1ada86e6adf1ddd4d8a321824daf5f3b2c75 (diff)
downloadspark-418ad83fe113f2f90552eb7247670279b55aed28.tar.gz
spark-418ad83fe113f2f90552eb7247670279b55aed28.tar.bz2
spark-418ad83fe113f2f90552eb7247670279b55aed28.zip
[SPARK-3911] [SQL] HiveSimpleUdf can not be optimized in constant folding
``` explain extended select cos(null) from src limit 1; ``` outputs: ``` Project [HiveSimpleUdf#org.apache.hadoop.hive.ql.udf.UDFCos(null) AS c_0#5] MetastoreRelation default, src, None == Optimized Logical Plan == Limit 1 Project [HiveSimpleUdf#org.apache.hadoop.hive.ql.udf.UDFCos(null) AS c_0#5] MetastoreRelation default, src, None == Physical Plan == Limit 1 Project [HiveSimpleUdf#org.apache.hadoop.hive.ql.udf.UDFCos(null) AS c_0#5] HiveTableScan [], (MetastoreRelation default, src, None), None ``` After patching this PR it outputs ``` == Parsed Logical Plan == Limit 1 Project ['cos(null) AS c_0#0] UnresolvedRelation None, src, None == Analyzed Logical Plan == Limit 1 Project [HiveSimpleUdf#org.apache.hadoop.hive.ql.udf.UDFCos(null) AS c_0#0] MetastoreRelation default, src, None == Optimized Logical Plan == Limit 1 Project [null AS c_0#0] MetastoreRelation default, src, None == Physical Plan == Limit 1 Project [null AS c_0#0] HiveTableScan [], (MetastoreRelation default, src, None), None ``` Author: Cheng Hao <hao.cheng@intel.com> Closes #2771 from chenghao-intel/hive_udf_constant_folding and squashes the following commits: 1379c73 [Cheng Hao] duplicate the PlanTest with catalyst/plans/PlanTest 1e52dda [Cheng Hao] add unit test for hive simple udf constant folding 01609ff [Cheng Hao] support constant folding for HiveSimpleUdf
Diffstat (limited to 'sql/hive/v0.13.1')
0 files changed, 0 insertions, 0 deletions