Francis Chuang created PHOENIX-3380:
---------------------------------------

             Summary: Document that NOT NULL can only be applied to primary keys
                 Key: PHOENIX-3380
                 URL: https://issues.apache.org/jira/browse/PHOENIX-3380
             Project: Phoenix
          Issue Type: Bug
            Reporter: Francis Chuang


According to https://phoenix.apache.org/language/index.html#create_table, the 
second example shows a non-primary key column having NOT NULL set. Executing 
this will currently return an error as NOT NULL can only be used on primary key 
columns.

The railroad diagram from ColumnDef also seems to imply that you can use NOT 
NULL on any column: https://phoenix.apache.org/language/index.html#column_def

I think a note should be added to mention that NOT NULL is only supported on 
primary key columns.



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

Reply via email to