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

Aihua Xu commented on HIVE-14341:
---------------------------------

Attached patch-1: removed the code that we will reload skew mapping info from 
the directory rather than from the database. Seems incorrect from what I can 
tell since it would gather incorrect info after the following command e.g., it 
will get a map {{new1 => /user/hive/warehouse/hdfs_skewed/new1}.

alter table list_bucket_single set skewed location 
(''1"="/user/hive/warehouse/hdfs_skewed/new1");




> Altered skewed location is not respected for list bucketing
> -----------------------------------------------------------
>
>                 Key: HIVE-14341
>                 URL: https://issues.apache.org/jira/browse/HIVE-14341
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 2.0.1
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-14341.1.patch
>
>
> CREATE TABLE list_bucket_single (key STRING, value STRING)
>   SKEWED BY (key) ON (1,5,6) STORED AS DIRECTORIES;
> alter table list_bucket_single set skewed location 
> (''1"="/user/hive/warehouse/hdfs_skewed/new1");
> While when you insert a row to key 1, the location falls back to the default 
> one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to