You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2014/10/20 02:15:27 UTC

[2/3] git commit: PHOENIX-1349 VIEWs do not inherit indexes from their parent

PHOENIX-1349 VIEWs do not inherit indexes from their parent


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/eef588da
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/eef588da
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/eef588da

Branch: refs/heads/master
Commit: eef588da22dafba2a48b5bbe1ff4fbdae1a2145e
Parents: 8f1b507
Author: James Taylor <jt...@salesforce.com>
Authored: Sun Oct 19 15:57:29 2014 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Sun Oct 19 15:58:01 2014 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/schema/MetaDataClient.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/eef588da/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
index 739c48c..924906e 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
@@ -389,7 +389,7 @@ public class MetaDataClient {
     private boolean addIndexesFromPhysicalTable(MetaDataMutationResult result) throws SQLException {
         PTable table = result.getTable();
         // If not a view or if a view directly over an HBase table, there's nothing to do
-        if (table.getType() != PTableType.VIEW || table.getViewType() != ViewType.MAPPED) {
+        if (table.getType() != PTableType.VIEW || table.getViewType() == ViewType.MAPPED) {
             return false;
         }
         String physicalName = table.getPhysicalName().getString();