You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The previous files for materialized views were not cleaned properly:
- during view replace, the existing view was deleted after creating the new one, not before (this case caused the error from the #25610 issue),
- during view drop, there was an attempt to delete the files twice (this case caused an error when dropping the materialized view).
- some leftover metadata and data files remained after recreate
Now, when recreating the materialized view, we are always deleting the existing storage using the dropMaterializedViewStorage method at the beginning of the process.
The dropMaterializedViewStorage had an extra metastore.dropTable call, which caused the DROP error, as the metastore.dropTable call needed files that were deleted by the call before.
In dropMaterializedViewStorage we are making sure the table is cleared from the metastore.
Enabled some unit tests that were ignored before due to the existing issues.
Copy file name to clipboardExpand all lines: plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/file/TestTrinoHiveCatalogWithFileMetastore.java
0 commit comments