You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Hive QA (JIRA)" <ji...@apache.org> on 2016/12/21 08:56:58 UTC

[jira] [Commented] (HIVE-15483) Database and table name is case sensitive when used in show grant

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

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 12 failed/errored test(s), 10825 tests executed
*Failed tests:*
{noformat}
TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=234)
TestVectorizedColumnReaderBase - did not produce a TEST-*.xml file (likely timed out) (batchId=251)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[dbtxnmgr_showlocks] (batchId=71)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[str_to_map] (batchId=58)
org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[transform_ppr2] (batchId=135)
org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[stats_based_fetch_decision] (batchId=151)
org.apache.hadoop.hive.cli.TestMiniTezCliDriver.testCliDriver[explainanalyze_2] (batchId=93)
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[exchange_partition_neg_incomplete_partition] (batchId=84)
org.apache.hadoop.hive.cli.TestNegativeCliDriver.testCliDriver[exim_00_unsupported_schema] (batchId=85)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query36] (batchId=222)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query70] (batchId=222)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query86] (batchId=222)
{noformat}

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

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: 12 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.4#6332)