huaxingao commented on PR #47233: URL: https://github.com/apache/spark/pull/47233#issuecomment-2253170537
I had an offline discussion with @cloud-fan. The proposed API is ``` spark .update(tableName) .set(...) .where(...) .execute() ``` The reason for having the `update` on `SparkSession` instead of on `DataFrame` is that a DataFrame is not necessarily a table scan, so it's more appropriate to place the `update` API on `SparkSession`. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org