Github user koertkuipers commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23173#discussion_r237716913
  
    --- 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 --
    
    do the init logic in the constructor for CsvOutputWriter instead?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to