This repository was archived by the owner on May 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
core/src/main/scala/org/apache/spark/sql
hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import java.beans.Introspector
2121import java .util .Properties
2222import java .util .concurrent .atomic .AtomicReference
2323
24- import org .apache .spark .sql .execution .aggregate2 .ConvertAggregateFunction
24+ import org .apache .spark .sql .execution .aggregate2 .{ CheckAggregateFunction , ConvertAggregateFunction }
2525
2626import scala .collection .JavaConversions ._
2727import scala .collection .immutable
@@ -153,7 +153,8 @@ class SQLContext(@transient val sparkContext: SparkContext)
153153 Nil
154154
155155 override val extendedCheckRules = Seq (
156- sources.PreWriteCheck (catalog)
156+ sources.PreWriteCheck (catalog),
157+ CheckAggregateFunction (self)
157158 )
158159 }
159160
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import java.io.File
2121import java .net .{URL , URLClassLoader }
2222import java .sql .Timestamp
2323
24- import org .apache .spark .sql .execution .aggregate2 .ConvertAggregateFunction
24+ import org .apache .spark .sql .execution .aggregate2 .{ CheckAggregateFunction , ConvertAggregateFunction }
2525
2626import scala .collection .JavaConversions ._
2727import scala .collection .mutable .HashMap
@@ -391,7 +391,8 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) with Logging {
391391 Nil
392392
393393 override val extendedCheckRules = Seq (
394- sources.PreWriteCheck (catalog)
394+ sources.PreWriteCheck (catalog),
395+ CheckAggregateFunction (self)
395396 )
396397 }
397398
You can’t perform that action at this time.
0 commit comments