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

CassandraStorage doesn't decode name in widerow mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.9, 1.2.1
    • None
    • Ubuntu 12.04.1 x64, Cassandra 1.1.8

    • 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. 5098.txt
          4 kB
          Brandon Williams
        2. test_schema.cli
          0.7 kB
          Justen Walker
        3. pig.log
          8 kB
          Justen Walker

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: