hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15483) Database and table name is case sensitive when used in show grant
Date Sat, 06 May 2017 11:38:04 GMT

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

Hive QA commented on HIVE-15483:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12844188/HIVE-15483.1.patch

{color:red}ERROR:{color} -1 due to no test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 10652 tests executed
*Failed tests:*
{noformat}
org.apache.hadoop.hive.cli.TestBeeLineDriver.testCliDriver[smb_mapjoin_2] (batchId=235)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_join30] (batchId=148)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/5073/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/5073/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-5073/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 2 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12844188 - PreCommit-HIVE-Build

> Database and table name is case sensitive when used in show grant
> -----------------------------------------------------------------
>
>                 Key: HIVE-15483
>                 URL: https://issues.apache.org/jira/browse/HIVE-15483
>             Project: Hive
>          Issue Type: Bug
>          Components: Authorization, SQLStandardAuthorization
>    Affects Versions: 1.3.0, 2.2.0
>            Reporter: Niklaus Xiao
>            Assignee: Niklaus Xiao
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: HIVE-15483.1.patch
>
>
> When use SQLStdAuth, db name and table name is case sensitive when use  {{show grant}}
command.
> {code}
> 0: jdbc:hive2://localhost:21066/> show grant on table p1;
> +-----------+--------+------------+---------+----------------------+-----------------+------------+---------------+----------------+----------+--+
> | database  | table  | partition  | column  |    principal_name    | principal_type 
| privilege  | grant_option  |   grant_time   | grantor  |
> +-----------+--------+------------+---------+----------------------+-----------------+------------+---------------+----------------+----------+--+
> | default   | p1     |            |         | userx                | USER           
| DELETE     | true          | 1481872357000  | userx    |
> | default   | p1     |            |         | userx                | USER           
| INSERT     | true          | 1481872357000  | userx    |
> | default   | p1     |            |         | userx                | USER           
| SELECT     | true          | 1481872357000  | userx    |
> | default   | p1     |            |         | userx                | USER           
| UPDATE     | true          | 1481872357000  | userx    |
> +-----------+--------+------------+---------+----------------------+-----------------+------------+---------------+----------------+----------+--+
> 7 rows selected (0.158 seconds)
> 0: jdbc:hive2://localhost:21066/> show grant on table P1;
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> | database  | table  | partition  | column  | principal_name  | principal_type  | privilege
 | grant_option  | grant_time  | grantor  |
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> No rows selected (9.608 seconds)
> 0: jdbc:hive2://localhost:21066/> show grant on table defaulT.p1;
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> | database  | table  | partition  | column  | principal_name  | principal_type  | privilege
 | grant_option  | grant_time  | grantor  |
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> +-----------+--------+------------+---------+-----------------+-----------------+------------+---------------+-------------+----------+--+
> No rows selected (0.06 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message