Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/16204#discussion_r91646930
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala
---
@@ -225,32 +228,50 @@ object FileFormatWriter extends Logging {
taskAttemptContext: TaskAttemptContext,
committer: FileCommitProtocol) extends ExecuteWriteTask {
- private[this] var outputWriter: OutputWriter = {
+ private[this] var currentWriter: OutputWriter = _
--- End diff --
Indeed I wanted to do that in the beginning but given there are only two
implementations with almost no code in this part, it's just over abstraction.
---
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]