You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2019/02/12 00:29:01 UTC

[GitHub] dbwong commented on a change in pull request #439: PHOENIX-2265 Disallow creation of view over HBase table if PK not spe…

dbwong commented on a change in pull request #439: PHOENIX-2265 Disallow creation of view over HBase table if PK not spe…
URL: https://github.com/apache/phoenix/pull/439#discussion_r255754274
 
 

 ##########
 File path: phoenix-core/src/main/java/org/apache/phoenix/compile/CreateTableCompiler.java
 ##########
 @@ -128,6 +128,24 @@ public MutationPlan compile(CreateTableStatement create) throws SQLException {
             viewTypeToBe = parentToBe.getViewType() == ViewType.MAPPED ? ViewType.MAPPED : ViewType.UPDATABLE;
             if (whereNode == null) {
                 viewStatementToBe = parentToBe.getViewStatement();
+
 
 Review comment:
   This code is in a whereNode==null condition.  What if my view had a simple where clause in it would we allow the construction?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services