You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Eric Lomore (JIRA)" <ji...@apache.org> on 2016/09/19 19:17:21 UTC

[jira] [Created] (PHOENIX-3298) Create table: Single column primary key may not be null

Eric Lomore created PHOENIX-3298:
------------------------------------

             Summary: Create table: Single column primary key may not be null
                 Key: PHOENIX-3298
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3298
             Project: Phoenix
          Issue Type: Sub-task
            Reporter: Eric Lomore


Create table statements with a single column currently must have "NOT NULL" identifier to pass tests.

Running this code results in failure
{code}CREATE TABLE t (k VARCHAR PRIMARY KEY DESC){code}

While this allows tests to pass
{code}CREATE TABLE t (k VARCHAR NOT NULL PRIMARY KEY DESC){code}

Must either enforce the not null condition and update test cases, or apply a fix.



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