Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/5577#discussion_r28649628
--- Diff:
core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala ---
@@ -300,8 +300,8 @@ private[spark] class ExternalSorter[K, V, C](
val partitionId = elem._1._1
val key = elem._1._2
val value = elem._2
- writer.write(key)
- writer.write(value)
+ writer.writeKey(key)
+ writer.writeValue(value)
--- End diff --
@rxin An alternative way to make the specialized SQL serializer work in
most of the cases is to only change
```
writer.write(key)
writer.write(value)
```
to
```
writer.write((key, value))
```
---
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]