You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Josh Elser (Jira)" <ji...@apache.org> on 2021/02/08 02:43:00 UTC

[jira] [Commented] (PHOENIX-6343) Phoenix allows duplicate column names when one of them is a primary key

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

Josh Elser commented on PHOENIX-6343:
-------------------------------------

[~larsh] curious if you saw this one (and have opinions)

> Phoenix allows duplicate column names when one of them is a primary key
> -----------------------------------------------------------------------
>
>                 Key: PHOENIX-6343
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6343
>             Project: Phoenix
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 5.0.0, 4.15.0
>            Reporter: Istvan Toth
>            Assignee: Viraj Jasani
>            Priority: Major
>             Fix For: 5.1.0, 4.16.0
>
>
> {code:sql}
> CREATE TABLE IF NOT EXISTS test_duplicate_columns (
> name VARCHAR NOT NULL PRIMARY KEY,
> city VARCHAR, name VARCHAR);
> {code}
> {noformat}
> select * from test_duplicate_columns;
> +------+------+------+
> | NAME | CITY | NAME |
> +------+------+------+
> +------+------+------+
> No rows selected (0.015 seconds)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)