cloud-fan commented on a change in pull request #26678: [SPARK-30226][SQL]
Remove withXXX functions in WriteBuilder
URL: https://github.com/apache/spark/pull/26678#discussion_r357020761
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/csv/CSVTable.scala
##########
@@ -49,8 +49,9 @@ case class CSVTable(
CSVDataSource(parsedOptions).inferSchema(sparkSession, files,
parsedOptions)
}
- override def newWriteBuilder(options: CaseInsensitiveStringMap):
WriteBuilder =
- new CSVWriteBuilder(options, paths, formatName, supportsDataType)
+ override def newWriteBuilder(
+ info: LogicalWriteInfo): WriteBuilder =
Review comment:
nit: this can be in one line.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]