Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/23173#discussion_r237561245 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/OutputWriter.scala --- @@ -57,6 +57,9 @@ abstract class OutputWriterFactory extends Serializable { * executor side. This instance is used to persist rows to this single output file. */ abstract class OutputWriter { + /** Initializes before writing any rows. Invoked on executor size. */ + def init(): Unit --- End diff -- Rather than make subclasses implement as a no-op, just provide that no-op impl here?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org