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 flakyness of sameResult
  • Loading branch information
Davies Liu committed Mar 4, 2016
commit 3cc23f3d94e744a96a2f5c1de9d3ebc67ec917e8
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ abstract class QueryPlan[PlanType <: QueryPlan[PlanType]] extends TreeNode[PlanT
// to erase that for equality testing.
val cleanedExprId =
Alias(a.child, a.name)(ExprId(-1), a.qualifiers, isGenerated = a.isGenerated)
BindReferences.bindReference(cleanedExprId.canonicalized, allAttributes, allowFailures = true)
BindReferences.bindReference(cleanedExprId, allAttributes, allowFailures = true)
case other =>
BindReferences.bindReference(other.canonicalized, allAttributes, allowFailures = true)
BindReferences.bindReference(other, allAttributes, allowFailures = true)
}

/** Args that have cleaned such that differences in expression id should not affect equality */
protected lazy val cleanArgs: Seq[Any] = {
def cleanArg(arg: Any): Any = arg match {
case e: Expression => cleanExpression(e)
case e: Expression => cleanExpression(e).canonicalized
case other => other
}

Expand Down