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 ScriptTransformationSuite
  • Loading branch information
sarutak committed Aug 20, 2016
commit 91cb915b4e6c3c4d24fab3f1e772e7e361d4c088
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ScriptTransformationSuite extends SparkPlanTest with TestHiveSingleton {
checkAnswer(
rowsDf,
(child: SparkPlan) => new ScriptTransformation(
input = Seq(rowsDf.col("a").expr),
input = Seq(rowsDf.colInternal("a").expr),
script = "cat",
output = Seq(AttributeReference("a", StringType)()),
child = child,
Expand All @@ -67,7 +67,7 @@ class ScriptTransformationSuite extends SparkPlanTest with TestHiveSingleton {
checkAnswer(
rowsDf,
(child: SparkPlan) => new ScriptTransformation(
input = Seq(rowsDf.col("a").expr),
input = Seq(rowsDf.colInternal("a").expr),
script = "cat",
output = Seq(AttributeReference("a", StringType)()),
child = child,
Expand All @@ -82,7 +82,7 @@ class ScriptTransformationSuite extends SparkPlanTest with TestHiveSingleton {
checkAnswer(
rowsDf,
(child: SparkPlan) => new ScriptTransformation(
input = Seq(rowsDf.col("a").expr),
input = Seq(rowsDf.colInternal("a").expr),
script = "cat",
output = Seq(AttributeReference("a", StringType)()),
child = ExceptionInjectingOperator(child),
Expand All @@ -99,7 +99,7 @@ class ScriptTransformationSuite extends SparkPlanTest with TestHiveSingleton {
checkAnswer(
rowsDf,
(child: SparkPlan) => new ScriptTransformation(
input = Seq(rowsDf.col("a").expr),
input = Seq(rowsDf.colInternal("a").expr),
script = "cat",
output = Seq(AttributeReference("a", StringType)()),
child = ExceptionInjectingOperator(child),
Expand All @@ -116,7 +116,7 @@ class ScriptTransformationSuite extends SparkPlanTest with TestHiveSingleton {
val e = intercept[SparkException] {
val plan =
new ScriptTransformation(
input = Seq(rowsDf.col("a").expr),
input = Seq(rowsDf.colInternal("a").expr),
script = "some_non_existent_command",
output = Seq(AttributeReference("a", StringType)()),
child = rowsDf.queryExecution.sparkPlan,
Expand Down