[
https://issues.apache.org/jira/browse/PHOENIX-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979335#comment-13979335
]
James Taylor commented on PHOENIX-935:
--------------------------------------
Yes, correct - it's an error on the user's part if they specify splits or
salting for a local index (for the reasons you mention). We check for splits
and raise an error before this call in CreateIndexCompiler, and we'll raise an
error if a local index is salted in MetaDataClient.createTableInternal. We
should add tests for these, though. Search for references of
SQLExceptionCode.CANNOT_SPLIT_LOCAL_INDEX and
SQLExceptionCode.CANNOT_SALT_LOCAL_INDEX.
> create local index table with the same split keys of user table
> ---------------------------------------------------------------
>
> Key: PHOENIX-935
> URL: https://issues.apache.org/jira/browse/PHOENIX-935
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: rajeshbabu
> Assignee: rajeshbabu
> Attachments: PHOENIX-935.patch
>
>
> For co-locating user table regions and index table regions, the regions key
> ranges should be same. So when user specify to create local index, internally
> we can create the index table with the same split keys of user table.
--
This message was sent by Atlassian JIRA
(v6.2#6252)