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

CassandraStorage can't cast fields from a CF correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.0.9, 1.1.0
    • None
    • OSX 10.6.latest, Pig 0.9.2.

    • Normal

    Description

      Included scripts demonstrate the problem. Regardless of whether the key is cast as a chararray or not, the Pig scripts fail with

      java.lang.ClassCastException: org.apache.pig.data.DataByteArray cannot be cast to java.lang.String
      	at org.apache.pig.backend.hadoop.HDataType.getWritableComparableTypes(HDataType.java:72)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce$Map.collect(PigGenericMapReduce.java:117)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.runPipeline(PigGenericMapBase.java:269)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:262)
      	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapBase.map(PigGenericMapBase.java:64)
      	at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
      	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
      	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
      	at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
      

      Attachments

        1. 0001-Add-LoadCaster-to-CassandraStorage.txt
          4 kB
          Brandon Williams
        2. 0002-Compose-key-from-marshaller.txt
          2 kB
          Brandon Williams
        3. test.cli
          0.4 kB
          Janne Jalkanen
        4. test.pig
          0.4 kB
          Janne Jalkanen

        Activity

          People

            brandon.williams Brandon Williams
            jalkanen Janne Jalkanen
            Brandon Williams
            Pavel Yaskevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: