aokolnychyi commented on a change in pull request #29066:
URL: https://github.com/apache/spark/pull/29066#discussion_r537574032
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/WriteToDataSourceV2Exec.scala
##########
@@ -216,12 +216,12 @@ case class AppendDataExec(
table: SupportsWrite,
writeOptions: CaseInsensitiveStringMap,
query: SparkPlan,
- refreshCache: () => Unit) extends V2TableWriteExec with BatchWriteHelper {
+ refreshCache: () => Unit,
+ override val write: Option[BatchWrite] = None)
+ extends V2ExistingTableWriteExec with BatchWriteHelper {
- override protected def run(): Seq[InternalRow] = {
- val writtenRows = writeWithV2(newWriteBuilder().buildForBatch())
- refreshCache()
Review comment:
Refresh happens in `V2ExistingTableWriteExec` now.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]