hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naveen Gangam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16697) Schema table validator should return a sorted list of missing tables
Date Wed, 17 May 2017 18:31:04 GMT

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

Naveen Gangam commented on HIVE-16697:
--------------------------------------

[~aihuaxu] we do not have to update any unit tests. the unit test currently tests whether
or not the validate() returns a true/false in case of a failure. It does not check for the
order of the missing tables.
We already have a unit test {{TestSchemaTool#testValidateSchemaTables}}. Thanks

> Schema table validator should return a sorted list of missing tables 
> ---------------------------------------------------------------------
>
>                 Key: HIVE-16697
>                 URL: https://issues.apache.org/jira/browse/HIVE-16697
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Metastore
>    Affects Versions: 3.0.0
>            Reporter: Naveen Gangam
>            Assignee: Naveen Gangam
>            Priority: Minor
>         Attachments: HIVE-16697.patch
>
>
> SchemaTool's validate feature has a schema table validator that checks to see if the
HMS schema is missing tables. This validator reports a list of tables that are deemed to be
missing. This list is currently unsorted (depends on the order of create table statements
in the schema file, which is different for different DB schema files). This makes it hard
to write a unit test that parses the results.



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

Mime
View raw message