Skip to content

Commit 5bbf7a9

Browse files
committed
Add invalidateTableCache call when deleting materialized view
1 parent 9551001 commit 5bbf7a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/hms/TrinoHiveCatalog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ private void dropMaterializedViewStorage(ConnectorSession session, io.trino.meta
731731
checkState(storageMetadataLocation != null, "Storage location missing in definition of materialized view " + viewName);
732732
try {
733733
dropMaterializedViewStorage(session, fileSystemFactory.create(session), storageMetadataLocation);
734+
invalidateTableCache(viewName);
734735
}
735736
catch (IOException e) {
736737
log.warn(e, "Failed to delete storage table metadata '%s' for materialized view '%s'", storageMetadataLocation, viewName);

0 commit comments

Comments
 (0)