Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: 1.0.10
    • Component/s: None
    • Labels:
      None

      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

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

        Activity

        Jackson Chung created issue -
        Jackson Chung made changes -
        Field Original Value New Value
        Attachment pig_1335816404547.log [ 12525144 ]
        Brandon Williams made changes -
        Assignee Brandon Williams [ brandon.williams ]
        Brandon Williams made changes -
        Fix Version/s 1.0.10 [ 12320540 ]
        Hide
        Brandon Williams added a comment -

        Sad patch w/test to cast DateType to a long, since pig has no native date type, and DateType is just a long under the hood anyway.

        Show
        Brandon Williams added a comment - Sad patch w/test to cast DateType to a long, since pig has no native date type, and DateType is just a long under the hood anyway.
        Brandon Williams made changes -
        Attachment 4204.txt [ 12525185 ]
        Hide
        Rick Branson added a comment -

        Reviewed, looks good.

        Show
        Rick Branson added a comment - Reviewed, looks good.
        Rick Branson made changes -
        Reviewer rbranson
        Hide
        Brandon Williams added a comment -

        Committed.

        Show
        Brandon Williams added a comment - Committed.
        Brandon Williams made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Brandon Williams added a comment -

        Just noticed we're actually returning a byte array here, so I changed this to a long in 2b7672fa11efa6e8c3c5cbc6fa857b3bc8947092

        Show
        Brandon Williams added a comment - Just noticed we're actually returning a byte array here, so I changed this to a long in 2b7672fa11efa6e8c3c5cbc6fa857b3bc8947092
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12664958 ] patch-available, re-open possible [ 12749632 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12749632 ] reopen-resolved, no closed status, patch-avail, testing [ 12754336 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        16h 47m 1 Brandon Williams 01/May/12 18:07

          People

          • Assignee:
            Brandon Williams
            Reporter:
            Jackson Chung
            Reviewer:
            Rick Branson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development