cloud-fan commented on code in PR #48830:
URL: https://github.com/apache/spark/pull/48830#discussion_r1859904543
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2Exec.scala:
##########
@@ -631,7 +641,18 @@ private[v2] trait V2CreateTableAsSelectBaseExec extends
LeafV2CommandExec {
qe.assertCommandExecuted()
table match {
- case st: StagedTable => st.commitStagedChanges()
+ case st: StagedTable =>
+ st.commitStagedChanges()
Review Comment:
let's add a `def commitStagedTable` in `DataSourceV2Utils`, which does the
commit work and also reports driver metrics. Then we can reuse this method in
both `AtomicReplaceTableExec` and here.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]