Alex Behm has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/9418 )
Change subject: IMPALA-6567: ResetMetadataStmt analysis should not load tables. ...................................................................... IMPALA-6567: ResetMetadataStmt analysis should not load tables. This fixes a regression introduced by IMPALA-5152 where invalidate metadata <tbl> and refresh <tbl> accidentally required the target table to be loaded during analysis, ultimately leading to a double load in some situations (load during analysis, then another load during execution). Since the purpose of these statements is to reload metadata it does not make sense to require a table load during analysis - that load happens during execution. Note that REFRESH <tbl> PARTITION (<partition>) still requires the containing table to be loaded. This was the behavior before IMPALA-5152 and this patch does not attempt to improve that. Testing: - added new unit test - ran FE tests locally - validated the desired behavior by inspecting logs and the timeine from invalidate/refresh statements Change-Id: I7033781ebf27ea53cfd26ff0e4f74d4f242bd1dc --- M fe/src/main/java/org/apache/impala/analysis/ResetMetadataStmt.java M fe/src/test/java/org/apache/impala/analysis/StmtMetadataLoaderTest.java 2 files changed, 24 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/18/9418/2 -- To view, visit http://gerrit.cloudera.org:8080/9418 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I7033781ebf27ea53cfd26ff0e4f74d4f242bd1dc Gerrit-Change-Number: 9418 Gerrit-PatchSet: 2 Gerrit-Owner: Alex Behm <alex.b...@cloudera.com>