You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2013/11/11 18:02:17 UTC

[jira] [Commented] (CASSANDRA-6329) example pig script doesn't run

    [ https://issues.apache.org/jira/browse/CASSANDRA-6329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819123#comment-13819123 ] 

Brandon Williams commented on CASSANDRA-6329:
---------------------------------------------

Care to submit a patch?

> example pig script doesn't run
> ------------------------------
>
>                 Key: CASSANDRA-6329
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6329
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>            Reporter: Jeremy Hanna
>            Priority: Trivial
>              Labels: pig
>
> The following line in the examples/pig/example-script.pig will not run (using Pig 0.9.2):
> {code}
> state_footage = FOREACH state_grouped GENERATE GROUP AS State, SUM(state_flat.SquareFeet) AS TotalFeet:int;
> {code}
> It needs to have a lowercase 'group' because that's the variable name after doing the GROUP operation in the previous line:
> {code}
> state_footage = FOREACH state_grouped GENERATE group AS State, SUM(state_flat.SquareFeet) AS TotalFeet:int;
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)