[
https://issues.apache.org/jira/browse/CASSANDRA-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jon Hermes updated CASSANDRA-1761:
----------------------------------
Description:
{noformat}column_families:
- name: CF
comparator: BytesType
column_metadata:
- name: foo
index_name: bar
index_type: KEYS
- name: bar
index_type: KEYS{noformat}
Auto-generated versus user-supplied names collide in the YAML above. The code:
{code}cfname = parentCf + "." + (info.getIndexName() == null ?
FBUtilities.bytesToHex(info.name) : info.getIndexName()){code}
>From the first ColumnDefinition, we create cfname = "CF.bar" (from the fail
>clause of the ternany, user-supplied name)
>From the second ColumnDefinition, we create cfname = "CF.bar" (from the pass
>clause of the ternary, we generate the name)
was:
{noformat}column_families:
- name: CF
comparator: BytesType
column_metadata:
- name: foo
index_name: bar
index_type: KEYS
- name: bar
index_type: KEYS{noformat}
Auto-generated versus user-supplied names collide in the YAML above. The code:
{code}cfname = parentCf + "." + (info.getIndexName() == null ?
FBUtilities.bytesToHex(info.name) : info.getIndexName()){code}
>From the first ColumnDefinition, we create cfname = "CF.bar"
>From the second ColumnDefinition, we create cfname = "CF.bar"
Affects Version/s: 0.7 beta 3
Assignee: Jon Hermes
> Indexes: Auto-generating the CFname may collide with user-generated names
> -------------------------------------------------------------------------
>
> Key: CASSANDRA-1761
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1761
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 0.7 beta 3
> Reporter: Jon Hermes
> Assignee: Jon Hermes
>
> {noformat}column_families:
> - name: CF
> comparator: BytesType
> column_metadata:
> - name: foo
> index_name: bar
> index_type: KEYS
> - name: bar
> index_type: KEYS{noformat}
> Auto-generated versus user-supplied names collide in the YAML above. The code:
> {code}cfname = parentCf + "." + (info.getIndexName() == null ?
> FBUtilities.bytesToHex(info.name) : info.getIndexName()){code}
> From the first ColumnDefinition, we create cfname = "CF.bar" (from the fail
> clause of the ternany, user-supplied name)
> From the second ColumnDefinition, we create cfname = "CF.bar" (from the pass
> clause of the ternary, we generate the name)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.