[
https://issues.apache.org/jira/browse/CASSANDRA-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174349#comment-13174349
]
Eric Evans commented on CASSANDRA-3424:
---------------------------------------
OK, so stepping a back a bit...
If we have semantics which are stable and expected in some version, and we
alter those in a future version (for anything other than a major version
change), that is a regression. So even if this patch had done what it intended
to do, it would be a regression, and we have always fixed regressions as
quickly as possible.
While it would make it no less of a regression, if this change had resulted in
SQL semantics, it could be considered an improvement, but that is not the case.
The pre-3424 behavior at least benefits from being consistent with how the RPC
interface works, and every prior CQL-enabled version of Cassandra.
So I believe we should revert this change because:
# It signals that we are serious about maintaining the contract we've made with
our users
# The original behavior (while not ideal) better satisfies the element of
least-surprise
> 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: Jonathan Ellis
> Priority: Minor
> Labels: cql
> Fix For: 1.0.3
>
> Attachments: 3424-v2.txt, CASSANDRA-3424.patch
>
>
> 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