Skip to content
Snippets Groups Projects
Commit 132e7fca authored by Daoyuan Wang's avatar Daoyuan Wang Committed by Josh Rosen
Browse files

[MINOR] [SQL] remove unused code in Exchange

Author: Daoyuan Wang <daoyuan.wang@intel.com>

Closes #7234 from adrian-wang/exchangeclean and squashes the following commits:

b093ec9 [Daoyuan Wang] remove unused code
parent 2471c0bf
No related branches found
No related tags found
No related merge requests found
......@@ -117,20 +117,6 @@ case class Exchange(
}
}
private val keyOrdering = {
if (newOrdering.nonEmpty) {
val key = newPartitioning.keyExpressions
val boundOrdering = newOrdering.map { o =>
val ordinal = key.indexOf(o.child)
if (ordinal == -1) sys.error(s"Invalid ordering on $o requested for $newPartitioning")
o.copy(child = BoundReference(ordinal, o.child.dataType, o.child.nullable))
}
new RowOrdering(boundOrdering)
} else {
null // Ordering will not be used
}
}
@transient private lazy val sparkConf = child.sqlContext.sparkContext.getConf
private def getSerializer(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment