[ https://issues.apache.org/jira/browse/SPARK-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or updated SPARK-3409: ----------------------------- Affects Version/s: 1.1.0 > Avoid pulling in Exchange operator itself in Exchange's closures > ---------------------------------------------------------------- > > Key: SPARK-3409 > URL: https://issues.apache.org/jira/browse/SPARK-3409 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 1.1.0 > Reporter: Reynold Xin > Assignee: Reynold Xin > Fix For: 1.1.1, 1.2.0 > > > {code} > val rdd = child.execute().mapPartitions { iter => > if (sortBasedShuffleOn) { > iter.map(r => (null, r.copy())) > } else { > val mutablePair = new MutablePair[Null, Row]() > iter.map(r => mutablePair.update(null, r)) > } > } > {code} > The above snippet from Exchange references sortBasedShuffleOn within a > closure, which requires pulling in the entire Exchange object in the closure. > This is a tiny teeny optimization. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org