[jira] Updated: (PIG-973) type resolution inconsistency

2009-12-14 Thread Richard Ding (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Ding updated PIG-973:
-

Attachment: PIG-973.patch

 type resolution inconsistency
 -

 Key: PIG-973
 URL: https://issues.apache.org/jira/browse/PIG-973
 Project: Pig
  Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Richard Ding
 Attachments: PIG-973.patch


 This script works:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
describe F;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G.$0);}
 dump C;
 This one produces an error:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G);}
 dump C;
 Notice the difference in how MIN is passed the data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (PIG-973) type resolution inconsistency

2009-12-14 Thread Olga Natkovich (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olga Natkovich updated PIG-973:
---

Resolution: Fixed
Status: Resolved  (was: Patch Available)

patch committed. thanks, Richard

 type resolution inconsistency
 -

 Key: PIG-973
 URL: https://issues.apache.org/jira/browse/PIG-973
 Project: Pig
  Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Richard Ding
 Attachments: PIG-973.patch


 This script works:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
describe F;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G.$0);}
 dump C;
 This one produces an error:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G);}
 dump C;
 Notice the difference in how MIN is passed the data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (PIG-973) type resolution inconsistency

2009-12-14 Thread Olga Natkovich (JIRA)

 [ 
https://issues.apache.org/jira/browse/PIG-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olga Natkovich updated PIG-973:
---

Fix Version/s: 0.7.0

 type resolution inconsistency
 -

 Key: PIG-973
 URL: https://issues.apache.org/jira/browse/PIG-973
 Project: Pig
  Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Richard Ding
 Fix For: 0.7.0

 Attachments: PIG-973.patch


 This script works:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
describe F;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G.$0);}
 dump C;
 This one produces an error:
 A = load 'test' using PigStorage(':') as (name: chararray, age: int, gpa: 
 float);
 B = group A by age;
 C = foreach B {
D = filter A by gpa  2.5;
E = order A by name;
F = A.age;
G = distinct F;
generate group, COUNT(D), MAX (E.name), MIN(G);}
 dump C;
 Notice the difference in how MIN is passed the data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.