aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2015-05-27 01:12:59 -0700
committerReynold Xin <rxin@databricks.com>2015-05-27 01:12:59 -0700
commit9f48bf6b3761d66c7dc50f076ed92aff21b7eea0 (patch)
treee55b83814eb8148c32fb17cc1828799c8cb096f1 /sql/hive
parent4f98d7a7f1715273bc91f1903bb7e0f287cc7394 (diff)
downloadspark-9f48bf6b3761d66c7dc50f076ed92aff21b7eea0.tar.gz
spark-9f48bf6b3761d66c7dc50f076ed92aff21b7eea0.tar.bz2
spark-9f48bf6b3761d66c7dc50f076ed92aff21b7eea0.zip
[SPARK-7887][SQL] Remove EvaluatedType from SQL Expression.
This type is not really used. Might as well remove it. Author: Reynold Xin <rxin@databricks.com> Closes #6427 from rxin/evalutedType and squashes the following commits: 51a319a [Reynold Xin] [SPARK-7887][SQL] Remove EvaluatedType from SQL Expression.
Diffstat (limited to 'sql/hive')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
index bc6b3a2d58..7ec4f73325 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala
@@ -75,7 +75,7 @@ private[hive] abstract class HiveFunctionRegistry
private[hive] case class HiveSimpleUdf(funcWrapper: HiveFunctionWrapper, children: Seq[Expression])
extends Expression with HiveInspectors with Logging {
- type EvaluatedType = Any
+
type UDFType = UDF
override def nullable: Boolean = true
@@ -139,7 +139,6 @@ private[hive] class DeferredObjectAdapter(oi: ObjectInspector)
private[hive] case class HiveGenericUdf(funcWrapper: HiveFunctionWrapper, children: Seq[Expression])
extends Expression with HiveInspectors with Logging {
type UDFType = GenericUDF
- type EvaluatedType = Any
override def nullable: Boolean = true
@@ -336,8 +335,6 @@ private[hive] case class HiveWindowFunction(
def nullable: Boolean = true
- override type EvaluatedType = Any
-
override def eval(input: Row): Any =
throw new TreeNodeException(this, s"No function to evaluate expression. type: ${this.nodeName}")