xplicit
group ALL - COUNT and a direct COUNT(A) are the same.
Thanks,
Pradeep
-Original Message-
From: Olga Natkovich [mailto:ol...@yahoo-inc.com]
Sent: Thursday, December 11, 2008 11:12 AM
To: pig-dev@hadoop.apache.org
Subject: RE: What is a relation?
I think we should consider Bag and relation
You are correct.
This is a problem with the language. The same function means different
things in different contexts with (essentially) the same kind of input.
Do you propose to fix the user confusion caused by inconsistent language
constructs (aka a language defect) by an even less consistent
i
n type and define
legal operations on this type.
Santhosh
-Original Message-
From: Ted Dunning [mailto:ted.dunn...@gmail.com]
Sent: Thursday, December 11, 2008 12:10 PM
To: pig-dev@hadoop.apache.org
Subject: Re: What is a relation?
All of what you say sounds like a feature to me rather th
---
> From: Olga Natkovich [mailto:ol...@yahoo-inc.com]
> Sent: Thursday, December 11, 2008 11:12 AM
> To: pig-dev@hadoop.apache.org
> Subject: RE: What is a relation?
>
> I think we should consider Bag and relations to be the same so that we
> can handle processing in the ou
..@yahoo-inc.com]
Sent: Thursday, December 11, 2008 11:12 AM
To: pig-dev@hadoop.apache.org
Subject: RE: What is a relation?
I think we should consider Bag and relations to be the same so that we
can handle processing in the outer script as well as inside of nested
foreach the same and make it easi
cember 05, 2008 6:04 PM
> > To: pig-dev@hadoop.apache.org
> > Subject: What is a relation?
> >
> > All,
> >
> > A question on types in pig. When you say:
> >
> > A = load 'myfile';
> >
> > what exactly is A? For the moment let us call A
Gates [mailto:ga...@yahoo-inc.com]
> Sent: Friday, December 05, 2008 6:04 PM
> To: pig-dev@hadoop.apache.org
> Subject: What is a relation?
>
> All,
>
> A question on types in pig. When you say:
>
> A = load 'myfile';
>
> what exactly is A? For the
Here is an example that I have given a while ago in JIRA Pig-158 :-
A = LOAD 'fil1' ;
B = A.($0,$1) ;
STORE B ;
which is similar to your top-level projection example.
I believe there is no distinction between so-called relations and bags in
our context.
"A top level relation is assumably spread
All,
A question on types in pig. When you say:
A = load 'myfile';
what exactly is A? For the moment let us call A a relation, since it
is a set of records, and we can pass it to a relational operator,
such as FILTER, ORDER, etc.
To clarify the question, is a relation equivalent to a bag