Github user chenghao-intel commented on a diff in the pull request:
https://github.com/apache/spark/pull/7981#discussion_r36495915
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/Exchange.scala ---
@@ -124,23 +138,9 @@ case class Exchange(newPartitioning: Partitioning,
child: SparkPlan) extends Una
private val serializer: Serializer = {
val rowDataTypes = child.output.map(_.dataType).toArray
- // It is true when there is no field that needs to be write out.
- // For now, we will not use SparkSqlSerializer2 when noField is true.
- val noField = rowDataTypes == null || rowDataTypes.length == 0
-
- val useSqlSerializer2 =
- child.sqlContext.conf.useSqlSerializer2 && //
SparkSqlSerializer2 is enabled.
- SparkSqlSerializer2.support(rowDataTypes) && // The schema of row
is supported.
- !noField
-
- if (child.outputsUnsafeRows) {
- logInfo("Using UnsafeRowSerializer.")
+ if (tungstenMode) {
--- End diff --
Nit: keep the log, which is very helpful for troubleshooting.
---
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]