Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/354#discussion_r11516306
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SchemaRDDLike.scala
---
@@ -62,4 +64,41 @@ trait SchemaRDDLike {
def registerAsTable(tableName: String): Unit = {
sqlContext.registerRDDAsTable(baseSchemaRDD, tableName)
}
+
+ /**
+ * <span class="badge badge-red" style="float:
right;">EXPERIMENTAL</span>
+ *
+ * Adds the rows from this RDD to the specified table, optionally
overwriting the existing data.
+ *
+ * @group schema
+ */
+ def insertInto(tableName: String, overwrite: Boolean): Unit =
--- End diff --
At some point we probably want to clarify execute returning and rdd,
execute returning an array (executeCollect) and execute DDL.
---
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.
---