gengliangwang commented on code in PR #54427:
URL: https://github.com/apache/spark/pull/54427#discussion_r2843471038
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala:
##########
@@ -579,7 +579,11 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
val table = a.table.asInstanceOf[ResolvedTable]
ResolveTableConstraints.validateCatalogForTableChange(
a.changes, table.catalog, table.identifier)
- AlterTableExec(table.catalog, table.identifier, a.changes) :: Nil
+ AlterTableExec(
+ table.catalog,
+ table.identifier,
+ a.changes,
+ recacheTable(table, includeTimeTravel = false)) :: Nil
Review Comment:
For behavior changes, we always add a flag `spark.sql.legacy.ABC`. See
https://spark.apache.org/docs/latest/sql-migration-guide.html for details. Most
of the legacy behaviors doesn't make sense.
--
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]