hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-22622) Hive allows to create a struct with duplicate attribute names
Date Tue, 01 Sep 2020 07:14:00 GMT


ASF GitHub Bot logged work on HIVE-22622:

                Author: ASF GitHub Bot
            Created on: 01/Sep/20 07:13
            Start Date: 01/Sep/20 07:13
    Worklog Time Spent: 10m 
      Work Description: kasakrisz commented on pull request #1446:

   Adding a test case for various underlying formats doesn't make sense this case because
the duplicate check is performed in the semantical analysis phase of the `create table` statement
and the error message would be the same. So if a duplicate found the code flow doesn't reach
the point where the table is actually created.
   Added a test case for nested struct.

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:

Issue Time Tracking

    Worklog Id:     (was: 477026)
    Time Spent: 40m  (was: 0.5h)

> Hive allows to create a struct with duplicate attribute names
> -------------------------------------------------------------
>                 Key: HIVE-22622
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Denys Kuzmenko
>            Assignee: Krisztian Kasa
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
> When you create at table with a struct with twice the same attribute name, hive allow
you to create it.
> create table test_struct( duplicateColumn struct<id:int, id:int>);
> You can insert data into it :
> insert into test_struct select named_struct("id",1,"id",1);
> But you can not read it :
> select * from test_struct;
> Return : Error reading file: hdfs://.../test_struct/delta_0000001_0000001_0000/bucket_00000
> We can create and insert. but fail on read the Struct part of the tables. We can still
read all other columns (if we have more than one) but not the struct anymore.

This message was sent by Atlassian Jira

View raw message