aokolnychyi commented on code in PR #54427:
URL: https://github.com/apache/spark/pull/54427#discussion_r2842817031
##########
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:
The problem is that the old behavior breaks correctness. What if someone
modified a comment or a property and does SHOW TABLE and doesn't see the
changes because the cache wasn't invalidated? Or worse. The schema is not
updated. So you evolve the schema but it is not reflected?
--
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]