Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/5497#discussion_r28563390
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala ---
@@ -77,9 +79,30 @@ case class Exchange(
}
}
- override def execute(): RDD[Row] = attachTree(this , "execute") {
- lazy val sparkConf = child.sqlContext.sparkContext.getConf
+ @transient private lazy val sparkConf =
child.sqlContext.sparkContext.getConf
+
+ def serializer(
+ keySchema: Array[DataType],
+ valueSchema: Array[DataType],
+ numPartitions: Int): Serializer = {
+ val useSqlSerializer2 =
+ !(sortBasedShuffleOn && numPartitions > bypassMergeThreshold) &&
+ child.sqlContext.conf.useSqlSerializer2 &&
+ SparkSqlSerializer2.support(keySchema) &&
+ SparkSqlSerializer2.support(valueSchema)
+
+ val serializer = if (useSqlSerializer2) {
+ logInfo("Use SparkSqlSerializer2.")
--- End diff --
nit: Using
same below
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]