Internal Jenkins has submitted this change and it was merged.

Change subject: IMPALA-3139: Fix drop table statement to not drop views and 
vice versa
......................................................................


IMPALA-3139: Fix drop table statement to not drop views and vice versa

This commit fixes the following two issues

- A drop table statement can drop a view with same name when "IF EXISTS" is 
specified.
- A drop view statement can drop a table with same name when "IF EXISTS" is 
specified.

This happens due to lack of checks in the Catalog before the drop executes.

Change-Id: I0d35cd1f50d9b8d50223660f753c56529cbbc311
Reviewed-on: http://gerrit.cloudera.org:8080/2458
Reviewed-by: Bharath Vissapragada <[email protected]>
Tested-by: Internal Jenkins
---
M common/thrift/JniCatalog.thrift
M fe/src/main/java/com/cloudera/impala/analysis/DropTableOrViewStmt.java
M fe/src/main/java/com/cloudera/impala/service/CatalogOpExecutor.java
M testdata/workloads/functional-query/queries/QueryTest/views-ddl.test
4 files changed, 54 insertions(+), 0 deletions(-)

Approvals:
  Bharath Vissapragada: Looks good to me, approved
  Internal Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/2458
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0d35cd1f50d9b8d50223660f753c56529cbbc311
Gerrit-PatchSet: 8
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Bharath Vissapragada <[email protected]>
Gerrit-Reviewer: Alex Behm <[email protected]>
Gerrit-Reviewer: Bharath Vissapragada <[email protected]>
Gerrit-Reviewer: Internal Jenkins

Reply via email to