Skip to content

Commit 5c7e680

Browse files
committed
Bug fix: wrong type used in pattern matching
1 parent 48aa2e5 commit 5c7e680

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveComparisonTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import org.scalatest.{BeforeAndAfterAll, FunSuite, GivenWhenThen}
2424
import org.apache.spark.sql.Logging
2525
import org.apache.spark.sql.catalyst.planning.PhysicalOperation
2626
import org.apache.spark.sql.catalyst.plans.logical._
27+
import org.apache.spark.sql.catalyst.plans.logical.{NativeCommand => LogicalNativeCommand}
2728
import org.apache.spark.sql.catalyst.util._
2829
import org.apache.spark.sql.hive.test.TestHive
2930

@@ -141,7 +142,7 @@ abstract class HiveComparisonTest
141142
// Hack: Hive simply prints the result of a SET command to screen,
142143
// and does not return it as a query answer.
143144
case _: SetCommand => Seq("0")
144-
case _: NativeCommand => answer.filterNot(nonDeterministicLine).filterNot(_ == "")
145+
case _: LogicalNativeCommand => answer.filterNot(nonDeterministicLine).filterNot(_ == "")
145146
case _: ExplainCommand => answer
146147
case plan => if (isSorted(plan)) answer else answer.sorted
147148
}

0 commit comments

Comments
 (0)