Re: What is a relation?

2008-12-11 Thread Alan Gates
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

Re: What is a relation?

2008-12-11 Thread Ted Dunning
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

RE: What is a relation?

2008-12-11 Thread Santhosh Srinivasan
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

Re: What is a relation?

2008-12-11 Thread Ted Dunning
--- > 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

RE: What is a relation?

2008-12-11 Thread Pradeep Kamath
..@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

Re: What is a relation?

2008-12-11 Thread Ted Dunning
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

RE: What is a relation?

2008-12-11 Thread Olga Natkovich
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

Re: What is a relation?

2008-12-05 Thread pi song
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

What is a relation?

2008-12-05 Thread Alan Gates
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