hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swarnim Kulkarni (JIRA)" <>
Subject [jira] [Commented] (HIVE-10120) Disallow create table with dot/colon in column name
Date Tue, 07 Apr 2015 19:16:12 GMT


Swarnim Kulkarni commented on HIVE-10120:

Thanks for addressing [~pxiong]. Left one very minor comment. Looks good otherwise. +1

> Disallow create table with dot/colon in column name
> ---------------------------------------------------
>                 Key: HIVE-10120
>                 URL:
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-10120.01.patch, HIVE-10120.02.patch
> Since we don't allow users to query column names with dot in the middle such as,
don't allow users to create tables with such columns that cannot be queried. Fix the documentation
to reflect this fix.
> Here is an example. Consider this table:
> {code}
> CREATE TABLE a (`` string);
> select `` from a; fails with this message:
> FAILED: RuntimeException java.lang.RuntimeException: cannot find field emp from []
> {code}
> The hive documentation needs to be fixed:
> {code}
>  ( seems to  indicate
that any Unicode character can go between the backticks in the select statement, but it doesn’t
like the dot/colon or even select * when there is a column that has a dot/colon. 
> {code}

This message was sent by Atlassian JIRA

View raw message