You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Evan Weaver (JIRA)" <ji...@apache.org> on 2009/08/09 22:00:14 UTC
[jira] Created: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
CompareSubcolumnsWith= has no effect
------------------------------------
Key: CASSANDRA-357
URL: https://issues.apache.org/jira/browse/CASSANDRA-357
Project: Cassandra
Issue Type: Bug
Reporter: Evan Weaver
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='[B@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.
[jira] Resolved: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis resolved CASSANDRA-357.
--------------------------------------
Resolution: Fixed
Fix Version/s: 0.4
fixed
> 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
> Fix For: 0.4
>
> 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741186#action_12741186 ]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
Fixes one bug, but causes another.
DEBUG - weakreadlocal reading SliceFromReadCommand(table='Twitter', key='test_get_super_sub_keys_with_count', column_parent='QueryPath(columnFamilyName='StatusRelationships', superColumnName='[B@2bb57fd1', columnName='null')', start='', finish='', isAscending=false, count=1)
ERROR - Internal error processing get_slice
java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:480)
at java.nio.HeapByteBuffer.getLong(HeapByteBuffer.java:387)
at org.apache.cassandra.db.marshal.LexicalUUIDType.getUUID(LexicalUUIDType.java:11)
at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:10)
at org.apache.cassandra.db.marshal.TimeUUIDType.compare(TimeUUIDType.java:5)
at org.apache.cassandra.db.filter.SliceQueryFilter.collectReducedColumns(SliceQueryFilter.java:80)
at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1391)
at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(ColumnFamilyStore.java:1365)
at org.apache.cassandra.db.Table.getRow(Table.java:589)
at org.apache.cassandra.db.SliceFromReadCommand.getRow(SliceFromReadCommand.java:65)
at org.apache.cassandra.service.StorageProxy.weakReadLocal(StorageProxy.java:609)
at org.apache.cassandra.service.StorageProxy.readProtocol(StorageProxy.java:320)
at org.apache.cassandra.service.CassandraServer.readColumnFamily(CassandraServer.java:94)
at org.apache.cassandra.service.CassandraServer.getSlice(CassandraServer.java:175)
at org.apache.cassandra.service.CassandraServer.get_slice(CassandraServer.java:220)
at org.apache.cassandra.service.Cassandra$Processor$get_slice.process(Cassandra.java:587)
at org.apache.cassandra.service.Cassandra$Processor.process(Cassandra.java:575)
at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:252)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
[9:47pm] jbellis: evn: the fix is to duplicate the length==0 special cases from LexicalUUIDType.compare in TimeUUIDType
[9:47pm] jbellis: but i need to figure out why my test case isn't tripping that bug
[9:47pm] jbellis: but my brain is done for the night. bedtime.
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
> Attachments: 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='[B@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.
[jira] Updated: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-357:
-------------------------------------
Attachment: 357-v2.patch
v2 fixes comparing with byte[0].
requires latest 356 patch for tests to pass.
> 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-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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741351#action_12741351 ]
Jonathan Ellis commented on CASSANDRA-357:
------------------------------------------
LongType looks fine with 356 + 357 patches.
> 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-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='[B@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.
[jira] Updated: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-357:
-------------------------------------
Attachment: 357-3.patch
respect "start" filter argument for subcolumns. applies on top of 357-v2
> 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741365#action_12741365 ]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
I now get an order/limit/range error. Range nil..@uuids[2] and @uuids[2]..nil both return the first item in the subcolumn.
1) Failure:
test_get_super_sub_keys_with_ranges(CassandraTest) [./test/cassandra_test.rb:109]:
<{<Cassandra::UUID#13817770 time: Wed Feb 16 09:21:04 -0800 1972, usecs: 0 jitter: 7897980574650157968>=>
"v2"}> expected but was
<{[<Cassandra::UUID#13748260 time: Sun Jan 24 00:40:32 -0800 1971, usecs: 0 jitter: 10815637326122044813>,
"v1"]=>nil}>.
DEBUG - weakreadlocal reading SliceFromReadCommand(table='Twitter', key='test_get_super_sub_keys_with_ranges', column_parent='QueryPath(columnFamilyName='StatusRelationships', superColumnName='[B@38990402', columnName='null')', start='?@?,????aB?', finish='', isAscending=true, count=1)
> 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-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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741139#action_12741139 ]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
I have ordered hashes. Thrift returns:
[<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:"\023\201@\0000\242\021\305\233\274a\252\a\300\325\355", value:"v5", timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:"\023\201@\000N\377\021\263\204\020\370\224\245\341\202\034", value:"v1", timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:"\023\201@\000\342\206\021\266\212\320\027J\207\000!\351", value:"v3", timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:"\023\201@\000\200,\021\264\226\217\311~\024\333qD", value:"v2", timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column name:"\023\201@\000\247:\021\273\2244\265\307*\375\200\237", value:"v4", timestamp:1249850151372872>>]
If I add in TimeUUIDType:
public int compare(byte[] o1, byte[] o2)
{
+ if (true) { throw new MarshalException("Crap"); }
long t1 = LexicalUUIDType.getUUID(o1).timestamp();
long t2 = LexicalUUIDType.getUUID(o2).timestamp();
return t1 < t2 ? -1 : (t1 > t2 ? 1 : 0);
}
it's never thrown in any place that I can find, at least.
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
>
> 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='[B@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.
[jira] Updated: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Michael Greene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Greene updated CASSANDRA-357:
-------------------------------------
Component/s: Core
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Evan Weaver
> Assignee: Jonathan Ellis
> Fix For: 0.4
>
> 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='[B@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.
[jira] Issue Comment Edited: (CASSANDRA-357) CompareSubcolumnsWith=
has no effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741510#action_12741510 ]
Evan Weaver edited comment on CASSANDRA-357 at 8/10/09 12:47 PM:
-----------------------------------------------------------------
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}>.
The server said:
DEBUG - get_slice_from
DEBUG - weakreadlocal reading SliceFromReadCommand(table='Twitter', key='test_get_super_sub_keys_with_ranges', column_parent='QueryPath(columnFamilyName='StatusRelationships', superColumnName='[B@2eb89c06', columnName='null')', start='?@?,??X?Y?v', finish='', isAscending=true, count=1)
was (Author: eweaver):
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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741635#action_12741635 ]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
It works! My checkout was broken.
Ship it!
> 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741528#action_12741528 ]
Jonathan Ellis commented on CASSANDRA-357:
------------------------------------------
I added this to the patched test_time_uuid in test_server.py:
p = SlicePredicate(slice_range=SliceRange(L[2].bytes, '', True, 1))
column_parent = ColumnParent('Super4', 'sc1')
slice = [result.column
for result in client.get_slice('Keyspace2', 'key1', column_parent, p, ConsistencyLevel.ONE)]
assert slice == [Column(L[2].bytes, 'value2', 2)], slice
this passes. I'm not sure how this differs from yours.
> 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='[B@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.
[jira] Updated: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-357:
-------------------------------------
Attachment: 357.patch
here you go. test is longer than the actual fix :)
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
> Attachments: 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='[B@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.
[jira] Assigned: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis reassigned CASSANDRA-357:
----------------------------------------
Assignee: Jonathan Ellis
> 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.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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741136#action_12741136 ]
Jonathan Ellis commented on CASSANDRA-357:
------------------------------------------
it looks like your client is returning a result as a hash. isn't your client's hashing going to screw with the ordering, even if cassandra's is correct?
I'd check the raw thrift results -- I don't see anything obviously wrong on the cassandra code and this is a path that the system tests check.
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
>
> 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Evan Weaver (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741189#action_12741189 ]
Evan Weaver commented on CASSANDRA-357:
---------------------------------------
While you're at it, can you see if LongType has the same problems?
> CompareSubcolumnsWith= has no effect
> ------------------------------------
>
> Key: CASSANDRA-357
> URL: https://issues.apache.org/jira/browse/CASSANDRA-357
> Project: Cassandra
> Issue Type: Bug
> Reporter: Evan Weaver
> Attachments: 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='[B@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.
[jira] Commented: (CASSANDRA-357) CompareSubcolumnsWith= has no
effect
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741842#action_12741842 ]
Hudson commented on CASSANDRA-357:
----------------------------------
Integrated in Cassandra #164 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/164/])
respect "start" filter argument for subcolumns.
patch by jbellis; reviewed by Even Weaver for
fix typo breaking CompareSubcolumnsWith. fix timeuuid compare with byte[0].
patch by jbellis; reviewed by Evan Weaver for
> 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
> Fix For: 0.4
>
> 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='[B@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.