Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3380

Document that NOT NULL can only be applied to primary keys

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            francischuang Francis Chuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: