Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-357

CompareSubcolumnsWith= has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.4
    • None
    • None
    • Normal

    Description

      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)

      Attachments

        1. 357.patch
          3 kB
          Jonathan Ellis
        2. 357-3.patch
          5 kB
          Jonathan Ellis
        3. 357-v2.patch
          4 kB
          Jonathan Ellis

        Issue Links

          Activity

            People

              jbellis Jonathan Ellis
              eweaver Evan Weaver
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: