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

example pig script doesn't run

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.13
    • None
    • Low

    Description

      The following line in the examples/pig/example-script.pig will not run (using Pig 0.9.2):

      state_footage = FOREACH state_grouped GENERATE GROUP AS State, SUM(state_flat.SquareFeet) AS TotalFeet:int;
      

      It needs to have a lowercase 'group' because that's the variable name after doing the GROUP operation in the previous line:

      state_footage = FOREACH state_grouped GENERATE group AS State, SUM(state_flat.SquareFeet) AS TotalFeet:int;
      

      Also, I wonder if it would be good to separate the CassandraStorage and CqlStorage into two different scripts, just so you can run the CqlStorage example out of the box without having to comment out the CassandraStorage example.

      Attachments

        1. CASSANDRA-6329.txt
          2 kB
          Jeremy Hanna

        Activity

          People

            jeromatron Jeremy Hanna
            jeromatron Jeremy Hanna
            Jeremy Hanna
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: