You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2015/09/16 01:16:45 UTC

[jira] [Created] (PHOENIX-2265) Disallow creation of view over HBase table if PK not specified

James Taylor created PHOENIX-2265:
-------------------------------------

             Summary: Disallow creation of view over HBase table if PK not specified
                 Key: PHOENIX-2265
                 URL: https://issues.apache.org/jira/browse/PHOENIX-2265
             Project: Phoenix
          Issue Type: Bug
            Reporter: James Taylor


We currently allow a Phoenix view to be defined over an HBase table without specifying a primary key.

To repro, create an HBase table in the HBase shell:
{code}
 create 'hb1', 'f1'
{code}
Then create a view in Phoenix:
{code}
create view "hb1"("f1".a varchar);
{code}

This should yield an error, as we haven't specified a primary key.



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