[
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\...@\0000\242\021\305\233\274a\252\a\300\325\355", value:"v5",
timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column
name:"\023\...@\000n\377\021\263\204\020\370\224\245\341\202\034", value:"v1",
timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column
name:"\023\...@\000\342\206\021\266\212\320\027j\207\000!\351", value:"v3",
timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column
name:"\023\...@\000\200,\021\264\226\217\311~\024\333qD", value:"v2",
timestamp:1249850151372872>>,
<CassandraThrift::ColumnOrSuperColumn column:<CassandraThrift::Column
name:"\023\...@\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='[...@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.