maropu commented on a change in pull request #25657:
[SPARK-28050][SQL]DataFrameWriter support insertInto a specific table partition
URL: https://github.com/apache/spark/pull/25657#discussion_r320594454
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
##########
@@ -338,6 +338,23 @@ final class DataFrameWriter[T] private[sql](ds:
Dataset[T]) {
* @since 1.4.0
*/
def insertInto(tableName: String): Unit = {
+ insertInto(tableName,None)
+ }
+
+ /**
+ * Inserts the content of the `DataFrame` to the specific table partition.
+ *
+ * {{{
+ * scala> Seq((3, 4)).toDF("j",
"i").write.insertInto(ptTableName,"pt1='0101',pt2='0202'")
+ * }}}
+ *
+ * @since 3.0
+ */
+ def insertInto(tableName: String,partionInfo: String): Unit = {
Review comment:
nit: add space `String, partionInfo` (Have you run `./dev/sbt-checkstyle `?
----------------------------------------------------------------
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]