[ 
https://issues.apache.org/jira/browse/IMPALA-8326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798506#comment-16798506
 ] 

ASF subversion and git services commented on IMPALA-8326:
---------------------------------------------------------

Commit 602a9eb7193b81a3b7f8a05e044a70831da06714 in impala's branch 
refs/heads/master from Austin Nobis
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=602a9eb ]

IMPALA-8326: Fix CreateDropRoleStmt::toSql

Previously the CreateDropRoleStmt::toSql method would incorrectly
order the stringified SQL statement as <role_name> ROLE CREATE/DROP.
This patch will properly order the statementas CREATE/DROP ROLE
<role_name>.

Testing:
- Ran all FE tests
- Added a new test to ToSqlTest for CreateDropRoleStmt

Change-Id: I25e4e1f680a6992779a47b5e6ad5092f27ba390a
Reviewed-on: http://gerrit.cloudera.org:8080/12813
Reviewed-by: Fredy Wijaya <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Incorrect toSql for CreateDropRoleStmt
> --------------------------------------
>
>                 Key: IMPALA-8326
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8326
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 3.0, Impala 2.12.0
>            Reporter: Austin Nobis
>            Assignee: Austin Nobis
>            Priority: Major
>             Fix For: Impala 3.3.0
>
>
> The toSql method for CreateDropRoleStmt is incorrect. The role name and the 
> action are in an incorrect order:
> Ideal: "create role test_role"
> Current: "test_role create role"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to