Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/13904 )
Change subject: IMPALA-8434: retain tables and functions in altering database ...................................................................... IMPALA-8434: retain tables and functions in altering database In the legacy catalog implementation (ImpaladCatalog), when altering a database, the tables and functions in it will disappear until we run INVALIDATE METADATA to reset the cache. The cause is that we just replace the old Db object with the new one deserialized from the TDatabase. We should migrate the existing tables and functions to the new Db object. Tests: - Add test_metadata_after_alter_database for the bug. - Run Core tests Change-Id: Ia3dc9857fd2733e20cf10fbe17bb1a4670d7d015 Reviewed-on: http://gerrit.cloudera.org:8080/13904 Reviewed-by: Vihang Karajgaonkar <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/catalog/ImpaladCatalog.java M tests/metadata/test_ddl.py 2 files changed, 29 insertions(+), 1 deletion(-) Approvals: Vihang Karajgaonkar: Looks good to me, approved Impala Public Jenkins: Verified -- To view, visit http://gerrit.cloudera.org:8080/13904 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Ia3dc9857fd2733e20cf10fbe17bb1a4670d7d015 Gerrit-Change-Number: 13904 Gerrit-PatchSet: 5 Gerrit-Owner: Quanlong Huang <[email protected]> Gerrit-Reviewer: Bharath Vissapragada <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Vihang Karajgaonkar <[email protected]>
