Skip to content

Commit

Permalink
Fix ScriptTransformationSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Aug 20, 2016
1 parent 05872b7 commit 91cb915
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 91cb915

Please sign in to comment.