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

Pig does not work on DateType

    XMLWordPrintableJSON

Details

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

    Description

      cqlsh:PigDemo> describe columnfamily test1897;

      CREATE COLUMNFAMILY test1897 (
      KEY text PRIMARY KEY,
      testcol timestamp
      ) WITH
      comment='' AND
      comparator=text AND
      row_cache_provider='SerializingCacheProvider' AND
      key_cache_size=200000.000000 AND
      row_cache_size=0.000000 AND
      read_repair_chance=1.000000 AND
      gc_grace_seconds=864000 AND
      default_validation=blob AND
      min_compaction_threshold=4 AND
      max_compaction_threshold=32 AND
      row_cache_save_period_in_seconds=0 AND
      key_cache_save_period_in_seconds=14400 AND
      replicate_on_write=True;

      cqlsh:PigDemo> select * from test1897;
      KEY | testcol
      ----+------------------------
      akey | 2012-01-21 00:14:12+0000

      $ cat test1897.pig
      cassandra_data = LOAD 'cassandra://PigDemo/test1897' USING CassandraStorage() AS (name, columns: bag

      {T: tuple()}

      );
      dump cassandra_data;

      there seems problem with the DateType. the above simple pig script fail with the attached err

      Attachments

        1. 4204.txt
          3 kB
          Brandon Williams
        2. pig_1335816404547.log
          4 kB
          Jackson Chung

        Activity

          People

            brandon.williams Brandon Williams
            cywjackson Jackson Chung
            Brandon Williams
            Rick Branson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: