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:
[email protected]
With regards,
Apache Git Services