sunchao commented on a change in pull request #30491:
URL: https://github.com/apache/spark/pull/30491#discussion_r532092537
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
##########
@@ -186,15 +195,16 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
}.toArray
r.table.asWritable match {
case v1 if v1.supports(TableCapability.V1_BATCH_WRITE) =>
- OverwriteByExpressionExecV1(v1, filters, writeOptions.asOptions,
query, r) :: Nil
+ OverwriteByExpressionExecV1(v1, filters, writeOptions.asOptions,
+ query, refreshCache(r)) :: Nil
case v2 =>
- OverwriteByExpressionExec(session, v2, r, filters,
- writeOptions.asOptions, planLater(query)) :: Nil
+ OverwriteByExpressionExec(v2, filters,
+ writeOptions.asOptions, planLater(query), refreshCache(r)) :: Nil
}
case OverwritePartitionsDynamic(r: DataSourceV2Relation, query,
writeOptions, _) =>
OverwritePartitionsDynamicExec(
- session, r.table.asWritable, r, writeOptions.asOptions,
planLater(query)) :: Nil
+ r.table.asWritable, writeOptions.asOptions, planLater(query),
refreshCache(r)) :: Nil
case DeleteFromTable(relation, condition) =>
Review comment:
Yes good catch! I think we should. I'll work on this in a separate PR.
----------------------------------------------------------------
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]