You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "zhengruifeng (via GitHub)" <gi...@apache.org> on 2023/02/15 04:16:12 UTC

[GitHub] [spark] zhengruifeng commented on a diff in pull request #40024: [SPARK-42426][CONNECT] Fix DataFrameWriter.insertInto to call the corresponding method instead of saveAsTable

zhengruifeng commented on code in PR #40024:
URL: https://github.com/apache/spark/pull/40024#discussion_r1106632696


##########
connector/connect/common/src/main/protobuf/spark/connect/commands.proto:
##########
@@ -91,6 +91,16 @@ message WriteOperation {
   // (Optional) A list of configuration options.
   map<string, string> options = 9;
 
+  message SaveTable {
+    string table_name = 1;
+    TableSaveMethod save_method = 2;
+
+    enum TableSaveMethod {
+      SAVE_AS_TABLE = 0;
+      INSERT_INTO = 1;

Review Comment:
   what about adding `SAVE_MODE_ INSERT_INTO` into existing `enum SaveMode`?



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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