Skip to content

Commit

Permalink
make right references for ScriptTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Feb 12, 2015
1 parent d29fbde commit f279a71
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

package org.apache.spark.sql.catalyst.plans.logical

import org.apache.spark.sql.catalyst.expressions.{Attribute, Expression}
import org.apache.spark.sql.catalyst.expressions.{AttributeSet, Attribute, Expression}

/**
* Transforms the input by forking and running the specified script.
Expand All @@ -32,7 +32,9 @@ case class ScriptTransformation(
script: String,
output: Seq[Attribute],
child: LogicalPlan,
ioschema: ScriptInputOutputSchema) extends UnaryNode
ioschema: ScriptInputOutputSchema) extends UnaryNode {
override def references: AttributeSet = AttributeSet(input.flatMap(_.references))
}

/**
* A placeholder for implementation specific input and output properties when passing data
Expand Down

0 comments on commit f279a71

Please sign in to comment.