Csaba Ringhofer has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14121 )

Change subject: IMPALA-8851: Do not throw authorization exception in drop if 
exists queries
......................................................................


Patch Set 6:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/14121/6//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/14121/6//COMMIT_MSG@15
PS6, Line 15: privilige
> nit, spell-check
Done


http://gerrit.cloudera.org:8080/#/c/14121/6/fe/src/main/java/org/apache/impala/analysis/Analyzer.java
File fe/src/main/java/org/apache/impala/analysis/Analyzer.java:

http://gerrit.cloudera.org:8080/#/c/14121/6/fe/src/main/java/org/apache/impala/analysis/Analyzer.java@2659
PS6, Line 2659: tblName
> I was trying out your patch locally and I found a bug in this code which ca
Thanks for spotting this! I used getFqTableName() to fix this, similarly to 
what getTable does.


http://gerrit.cloudera.org:8080/#/c/14121/6/fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java
File fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java:

http://gerrit.cloudera.org:8080/#/c/14121/6/fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java@117
PS6, Line 117: tableName_
> I noticed that the tableName_ here is not fully qualified for some reason.
I created a fix inside tableExists().

The reason for using unqualified name is probably to be able to reconstruct the 
original query in toSql(), but this seems quite dangerous to me.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iba068935e5da92d71e16e2321afdb8e7b781086a
Gerrit-Change-Number: 14121
Gerrit-PatchSet: 6
Gerrit-Owner: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: Vihang Karajgaonkar <[email protected]>
Gerrit-Comment-Date: Tue, 27 Aug 2019 22:13:15 +0000
Gerrit-HasComments: Yes

Reply via email to