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

CassandraStorage can't cast fields from a CF correctly

    XMLWordPrintableJSON

    Details

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

      OSX 10.6.latest, Pig 0.9.2.

    • Severity:
      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. 0002-Compose-key-from-marshaller.txt
          2 kB
          Brandon Williams
        2. 0001-Add-LoadCaster-to-CassandraStorage.txt
          4 kB
          Brandon Williams
        3. test.pig
          0.4 kB
          Janne Jalkanen
        4. test.cli
          0.4 kB
          Janne Jalkanen

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: