Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Bug when adding multiple partitions


Copy link to this message
-
Re: Bug when adding multiple partitions
Navis, you are an antlr superhero. Impressive as always.

On Tuesday, August 20, 2013, Navis류승우 <[EMAIL PROTECTED]> wrote:
> https://issues.apache.org/jira/browse/HIVE-5122
>
> 2013/8/20 Navis류승우 <[EMAIL PROTECTED]>:
>> Looks like a bug. I'll fix that.
>>
>> 2013/8/15 Jan Dolinár <[EMAIL PROTECTED]>:
>>> Hi everyone,
>>>
>>> Consider following DDL:
>>>
>>>     CREATE TABLE partition_test
>>>       (a INT)
>>>     PARTITIONED BY (b INT);
>>>
>>>     ALTER TABLE partition_test ADD
>>>         PARTITION (b=1) location '/tmp/test1'
>>>         PARTITION (b=2) location '/tmp/test2';
>>>
>>> Now lets have a look what was created:
>>>
>>>     DESCRIBE EXTENDED partition_test PARTITION (b=1);
>>>     DESCRIBE EXTENDED partition_test PARTITION (b=2);
>>>
>>> Both describe statements yield "location:hdfs://
example.com:9000/tmp/test1",
>>> which is obviously incorrect.
>>>
>>> This behavior *is* mentioned on wiki[1], but the article speaks
specifically
>>> of hive 0.7. I just tested this in versions 0.7.1 and 0.10.0, and they
both
>>> exhibit this bug. I wasn't even able to find a JIRA for this issue, was
I
>>> looking wrong? Or should a new one be created?
>>>
>>> Best regards,
>>> Jan Dolinar
>>>
>>> [1]
>>>
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AddPartitions
>