hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aihua Xu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11194) Exchange partition on external tables should fail with error message when target folder already exists
Date Fri, 10 Jul 2015 21:42:05 GMT

     [ https://issues.apache.org/jira/browse/HIVE-11194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aihua Xu updated HIVE-11194:
----------------------------
    Attachment:     (was: HIVE-11194.patch)

> Exchange partition on external tables should fail with error message when target folder
already exists
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-11194
>                 URL: https://issues.apache.org/jira/browse/HIVE-11194
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 2.0.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-11194.patch
>
>
> Steps to repro:
> {noformat}
> Create /data/a1/pkey=1 directory with some data in it.
> Create /data/a2/pkey=1 directory with some data in it.
> create external table a1 (value string) partitioned by (pkey int) location '/data/a1';
> create external table a2 (value string) partitioned by (pkey int) location '/data/a2';
> alter table a2 add partition (pkey=1);
> alter table a1 exchange partition (pkey=1) with table a2;
> select * from a1 should now fail.
> {noformat}
> pkey=1 is not a partition of a1 but the folder exists. We should give an error message
for that.



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

Mime
View raw message