Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
Andrew Or committed Aug 11, 2015
commit b10a4f3904bd1a67c0c5ae07e11e21464c6a0268
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ package org.apache.spark.sql.execution.aggregate

import org.apache.spark._
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.unsafe.memory.TaskMemoryManager
import org.apache.spark.sql.catalyst.expressions.InterpretedMutableProjection
import org.apache.spark.sql.test.TestSQLContext
import org.apache.spark.unsafe.memory.TaskMemoryManager

class TungstenAggregationIteratorSuite extends SparkFunSuite with LocalSparkContext {
class TungstenAggregationIteratorSuite extends SparkFunSuite {

test("memory acquired on construction") {
// Needed for various things in SparkEnv
sc = new SparkContext("local", "testing")
val taskMemoryManager = new TaskMemoryManager(sc.env.executorMemoryManager)
// set up environment
TestSQLContext

val taskMemoryManager = new TaskMemoryManager(SparkEnv.get.executorMemoryManager)
val taskContext = new TaskContextImpl(0, 0, 0, 0, taskMemoryManager, null, Seq.empty)
TaskContext.setTaskContext(taskContext)

Expand Down