[
https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741510#action_12741510
]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
Still broken. Here is my test case (elements of the @uuids array are in
increasing order by time):
def test_get_super_sub_keys_with_ranges
@twitter.insert(:StatusRelationships, key,
{'user_timelines' => {
@uuids[1] => 'v1',
@uuids[2] => 'v2',
@uuids[3] => 'v3',
@uuids[4] => 'v4',
@uuids[5] => 'v5'}})
keys = @twitter.get(:StatusRelationships, key, "user_timelines").keys
assert_equal keys.sort, keys
assert_equal({...@uuids[1] => 'v1'}, @twitter.get(:StatusRelationships,
key, "user_timelines", :finish => @uuids[2], :count => 1))
# FAILS ON NEXT LINE
assert_equal({...@uuids[2] => 'v2'}, @twitter.get(:StatusRelationships,
key, "user_timelines", :start => @uuids[2], :count => 1))
assert_equal 4, @twitter.get(:StatusRelationships, key, "user_timelines",
:start => @uuids[2], :finish => @uuids[5]).size
Here is the result:
1) Failure:
test_get_super_sub_keys_with_ranges(CassandraTest)
[./test/cassandra_test.rb:110]:
<{<Cassandra::UUID#13756560 time: Wed Feb 16 09:21:04 -0800 1972, usecs: 0
jitter: 3921283106724136851>=>
"v2"}> expected but was
<{[<Cassandra::UUID#13696690 time: Sun Jan 24 00:40:32 -0800 1971, usecs: 0
jitter: 2275131151012163974>,
"v1"]=>nil}>.
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
> Assignee: Jonathan Ellis
> Attachments: 357-3.patch, 357-v2.patch, 357.patch
>
>
> CompareSubcolumnsWith= has no effect.
> <ColumnFamily CompareWith="UTF8Type"
> CompareSubcolumnsWith="TimeUUIDType" ColumnType="Super"
> Name="StatusRelationships" />
> I insert:
> <[<Cassandra::UUID#13700550 time: Sun Jan 24 00:40:32 -0800 1971>,
> <Cassandra::UUID#13700530 time: Wed Feb 16 09:21:04 -0800 1972>,
> <Cassandra::UUID#13700540 time: Wed Apr 03 03:42:08 -0700 1974>,
> <Cassandra::UUID#13700520 time: Tue Jul 04 14:24:16 -0700 1978>,
> <Cassandra::UUID#13700560 time: Mon Jan 05 10:48:32 -0800 1987>]>
> But:
> keys = @twitter.get(:StatusRelationships, key, "user_timelines").keys
> Responds with:
> <[<Cassandra::UUID#13700560 time: Mon Jan 05 10:48:32 -0800 1987>,
> <Cassandra::UUID#13700550 time: Sun Jan 24 00:40:32 -0800 1971>,
> <Cassandra::UUID#13700540 time: Wed Apr 03 03:42:08 -0700 1974>,
> <Cassandra::UUID#13700530 time: Wed Feb 16 09:21:04 -0800 1972>,
> <Cassandra::UUID#13700520 time: Tue Jul 04 14:24:16 -0700 1978>]>.
> PS. The debug log says:
> weakreadlocal reading SliceFromReadCommand(table='Twitter',
> key='test_get_super_sub_keys_with_ranges',
> column_parent='QueryPath(columnFamilyName='StatusRelationships',
> superColumnName='[...@370410a7', columnName='null')', start='', finish='',
> isAscending=true, count=100)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.