phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas D'Silva (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-5294) getIndexes() on a view should return only the indexes on that view
Date Fri, 07 Jun 2019 20:27:00 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858967#comment-16858967
] 

Thomas D'Silva commented on PHOENIX-5294:
-----------------------------------------

What do you mean by duplicate entries? The code that adds indexes to a view from its parent
tables is located in {{MetadataClient.addIndexesFromParentTable}}.
A view should be able to an index from its ancestor table if the index has all the columns
required for the view.

> getIndexes() on a view should return only the indexes on that view
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-5294
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5294
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Swaroopa Kadam
>            Assignee: Swaroopa Kadam
>            Priority: Major
>
> Currently, if I have a table (with indexes on it) and a global view (also an index on
it), getIndexes() on a view PTable returns indexes on the base table as well with the duplicate
entries. 
> Semantically, it makes more sense to only return indexes on the view. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message