Thomas Tauber-Marshall has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/5144

Change subject: IMPALA-4357: Fix DROP TABLE for externally deleted Kudu tables
......................................................................

IMPALA-4357: Fix DROP TABLE for externally deleted Kudu tables

If a table is deleted directly from Kudu but still exists in Impala,
operations on that table will fail with AnalysisExceptions, including
'DROP TABLE' operations, making it impossible to drop tables from
Impala that are in this state (unless you used 'IF EXISTS', which is
obviously not the intended behavior).

This patch modifies DropTableOrViewStmt to recognize this situation
and allow analysis to pass so the table can be removed from Impala.

Change-Id: I6b41fc3c0e95508ab67f1d420b033b02ec75a5da
---
M fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java
M fe/src/main/java/org/apache/impala/catalog/KuduTable.java
M tests/query_test/test_kudu.py
3 files changed, 14 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/44/5144/1
-- 
To view, visit http://gerrit.cloudera.org:8080/5144
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b41fc3c0e95508ab67f1d420b033b02ec75a5da
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Thomas Tauber-Marshall <[email protected]>

Reply via email to