hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-23358) MSCK REPAIR should remove all insignificant zeroes from partition values (for numeric datatypes) before creating the partitions
Date Mon, 03 Aug 2020 00:37:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-23358?focusedWorklogId=465489&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-465489
]

ASF GitHub Bot logged work on HIVE-23358:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Aug/20 00:36
            Start Date: 03/Aug/20 00:36
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #1050:
URL: https://github.com/apache/hive/pull/1050#issuecomment-667747595


   This pull request has been automatically marked as stale because it has not had recent
activity. It will be closed if no further activity occurs.
   Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 465489)
    Time Spent: 0.5h  (was: 20m)

> MSCK REPAIR should remove all insignificant zeroes from partition values (for numeric
datatypes) before creating the partitions
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-23358
>                 URL: https://issues.apache.org/jira/browse/HIVE-23358
>             Project: Hive
>          Issue Type: Bug
>          Components: Standalone Metastore
>    Affects Versions: 4.0.0
>            Reporter: Adesh Kumar Rao
>            Assignee: Adesh Kumar Rao
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> For the following scenario
> 1. Have partitioned data path as follows.
> hdfs://mycluster/datapath/t1/year=2020/month=03/day=10
> hdfs://mycluster/datapath/t1/year=2020/month=03/day=11
> 2. create external table t1 (key int, value string) partitioned by (Year int, Month int,
Day int) stored as orc location hdfs://mycluster/datapath/t1'';
> 3. msck repair table t1;
> 4. show partitions t1; 
> {noformat}
> +----------------------------+
> |         partition          |
> +----------------------------+
> | year=2020/month=03/day=10  |
> | year=2020/month=03/day=11 |
> +----------------------------+
> {noformat}
> 5.show table extended like 't1' partition (Year=2020, Month=03, Day=11); 
> will throw an error:
> {noformat}
> Error: Error while compiling statement: FAILED: SemanticException [Error 10006]: Partition
not found {year=2020, month=3, day=11} (state=42000,code=10006)
> {noformat}
> When the partition directory are created without the extra zeroes, this works fine.
> {noformat}
> hdfs://mycluster/datapath/t1/year=2020/month=3/day=10
> hdfs://mycluster/datapath/t1/year=2020/month=3/day=11
> {noformat}
> This happens because while searching for partitions, hive strips the extra "0" in month
key and then queries the metastore (partSpec="year=2020/month=3/day=10") which returns no
rows.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message