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
fix build
  • Loading branch information
mgaido91 committed Jan 4, 2019
commit f9d13e5e3da083e1f1b99f5b406da744f365a2d2
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ object RewritePredicateSubquery extends Rule[LogicalPlan] with PredicateHelper {
// attributes in the join condition, the subquery's conflicting attributes are changed using
// a projection which aliases them and resolves the problem.
val outerReferences = valuesOpt.map(values =>
AttributeSet.fromAttributeSets(values.map(_.references))).getOrElse(AttributeSet.empty)
AttributeSet(values.flatMap(_.references))).getOrElse(AttributeSet.empty)
val outerRefs = outerPlan.outputSet ++ outerReferences
val duplicates = outerRefs.intersect(subplan.outputSet)
if (duplicates.nonEmpty) {
Expand Down