Skip to content

Commit

Permalink
Also match TungstenProject in checkNumProjects
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 29, 2015
1 parent 5d0b2d3 commit 013b9da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package org.apache.spark.sql

import org.scalatest.Matchers._

import org.apache.spark.sql.execution.Project
import org.apache.spark.sql.execution.{Project, TungstenProject}
import org.apache.spark.sql.functions._
import org.apache.spark.sql.types._

Expand Down Expand Up @@ -523,6 +523,7 @@ class ColumnExpressionSuite extends QueryTest {
def checkNumProjects(df: DataFrame, expectedNumProjects: Int): Unit = {
val projects = df.queryExecution.executedPlan.collect {
case project: Project => project
case tungstenProject: TungstenProject => tungstenProject
}
assert(projects.size === expectedNumProjects)
}
Expand Down

0 comments on commit 013b9da

Please sign in to comment.