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

CassandraStorage doesn't decode name in widerow mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 1.1.9, 1.2.1
    • Component/s: None
    • Labels:
    • Environment:

      Ubuntu 12.04.1 x64, Cassandra 1.1.8

    • Severity:
      Normal

      Description

      CassandraStorage doesn't decode name in widerow mode. This causes functions such as FILTER to fail with a ClassCastException, since the key is a bytearray instead of a chararray.

      test.pig
      DEFINE CassandraStorage org.apache.cassandra.hadoop.pig.CassandraStorage;
      
      A  = LOAD 'cassandra://Metrics/EventEntries?widerows=true' USING CassandraStorage();
      -- describe A --> A: {key: chararray,columns: {(name: (),value: chararray)}}
      
      B = FILTER A BY key matches '^user.hit';
      -- Throws CCE: org.apache.pig.data.DataByteArray cannot be cast to java.lang.String
      

        Attachments

        1. test_schema.cli
          0.7 kB
          Justen Walker
        2. pig.log
          8 kB
          Justen Walker
        3. 5098.txt
          4 kB
          Brandon Williams

          Activity

            People

            • Assignee:
              brandon.williams Brandon Williams
              Reporter:
              justen_walker Justen Walker
              Authors:
              Brandon Williams
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: