[
https://issues.apache.org/jira/browse/CASSANDRA-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis reassigned CASSANDRA-3424:
-----------------------------------------
Assignee: Pavel Yaskevich
Odd, that should be handled by this code:
{code}
. if (term.getText().equalsIgnoreCase(keyString))
{
// preserve case of key as it was requested
ByteBuffer requestedKey =
ByteBufferUtil.bytes(term.getText());
thriftColumns.add(new
Column(requestedKey).setValue(row.key.key).setTimestamp(-1));
result.schema.name_types.put(requestedKey,
TypeParser.getShortName(AsciiType.instance));
result.schema.value_types.put(requestedKey,
TypeParser.getShortName(metadata.getKeyValidator()));
continue;
}
{code}
> Selecting just the row_key returns nil instead of just the row_key
> ------------------------------------------------------------------
>
> Key: CASSANDRA-3424
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3424
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0.0
> Reporter: Kelley Reynolds
> Assignee: Pavel Yaskevich
> Priority: Minor
> Labels: cql
>
> CREATE KEYSPACE CassandraCQLTestKeyspace WITH
> strategy_class='org.apache.cassandra.locator.SimpleStrategy' AND
> strategy_options:replication_factor=1
> USE CassandraCQLTestKeyspace
> CREATE COLUMNFAMILY row_key_validation_cf_ascii (id ascii PRIMARY KEY,
> test_column text)
> INSERT INTO row_key_validation_cf_ascii (id, test_column) VALUES ('test
> string', 'test')
> # Works as expected
> SELECT * FROM row_key_validation_cf_ascii WHERE id = 'test string'
> # Returns an empty result, unexpected
> SELECT id FROM row_key_validation_cf_ascii WHERE id = 'test string'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira