[
https://issues.apache.org/jira/browse/PHOENIX-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Taylor updated PHOENIX-1484:
----------------------------------
Attachment: PHOENIX-1484_v2.patch
Slightly modified patch. It still fixes the issue in which a
DEFAULT_COLUMN_FAMILY is specified on the table which is preventing a local
index from being created. However, it's not allowed to set
DEFAULT_COLUMN_FAMILY on a local index since this applies to the entire
physical table while multiple local indexes are stored within the table (i.e.
it'd be a problem if two local indexes on the same table specified different
values for DEFAULT_COLUMN_FAMILY).
Also, [~rajesh23], I tweaked the way in which a local index population occurs.
This allows a "connectionless" connection to be used for testing purposes to
test stuff like this (where the index population becomes a noop). Otherwise the
behavior is the same.
> Index creation failed due to specifying DEFAULT_COLUMN_FAMILY option
> --------------------------------------------------------------------
>
> Key: PHOENIX-1484
> URL: https://issues.apache.org/jira/browse/PHOENIX-1484
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.2
> Environment: HBase 0.98.6-cdh5.2.0
> Reporter: Sun Fulin
> Assignee: rajeshbabu
> Attachments: PHOENIX-1484.patch, PHOENIX-1484_v2.patch
>
>
> I tryied again with phoenix 4.1 version and still got the exception.
> Following is my statements:
> 1 create table example (id integer not null,fn varchar,ln varchar
> constraint pk primary key(id)) DEFAULT_COLUMN_FAMILY='F';
> Notice that I would like to create default mutable index for the table.
> 2 create local index my_idx on example (fn) DEFAULT_COLUMN_FAMILY='F';
> Here no matter with or without specifying DEFAULT_COLUMN_FAMILY
> options we would always got the following error:
> Error: ERROR 1009 (42L02): Properties may not be defined for a view.
> (state=42L02,code=1009)
> 3 I also tried to create local index with immutable rows setting true,
> however, I still got the above error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)