[jira] Updated: (PIG-1146) Inconsistent column pruning in LOUnion

2009-12-24 Thread Daniel Dai (JIRA)

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

Daniel Dai updated PIG-1146:


  Resolution: Fixed
Hadoop Flags: [Reviewed]
  Status: Resolved  (was: Patch Available)

Patch committed.

 Inconsistent column pruning in LOUnion
 --

 Key: PIG-1146
 URL: https://issues.apache.org/jira/browse/PIG-1146
 Project: Pig
  Issue Type: Bug
  Components: impl
Affects Versions: 0.6.0
Reporter: Daniel Dai
Assignee: Daniel Dai
 Fix For: 0.7.0

 Attachments: PIG-1146-1.patch, PIG-1146-2.patch


 This happens when we do a union on two relations, if one column comes from a 
 loader, the other matching column comes from a constant, and this column get 
 pruned. We prune for the one from loader and did not prune the constant. Thus 
 leaves union an inconsistent state. Here is a script:
 {code}
 a = load '1.txt' as (a0, a1:chararray, a2);
 b = load '2.txt' as (b0, b2);
 c = foreach b generate b0, 'hello', b2;
 d = union a, c;
 e = foreach d generate $0, $2;
 dump e;
 {code}
 1.txt: 
 {code}
 ulysses thompson64  1.90
 katie carson25  3.65
 {code}
 2.txt:
 {code}
 luke king   0.73
 holly davidson  2.43
 {code}
 expected output:
 (ulysses thompson,1.90)
 (katie carson,3.65)
 (luke king,0.73)
 (holly davidson,2.43)
 real output:
 (ulysses thompson,)
 (katie carson,)
 (luke king,0.73)
 (holly davidson,2.43)

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



[jira] Updated: (PIG-1146) Inconsistent column pruning in LOUnion

2009-12-23 Thread Daniel Dai (JIRA)

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

Daniel Dai updated PIG-1146:


Status: Patch Available  (was: Open)

 Inconsistent column pruning in LOUnion
 --

 Key: PIG-1146
 URL: https://issues.apache.org/jira/browse/PIG-1146
 Project: Pig
  Issue Type: Bug
  Components: impl
Affects Versions: 0.6.0
Reporter: Daniel Dai
Assignee: Daniel Dai
 Fix For: 0.7.0

 Attachments: PIG-1146-1.patch, PIG-1146-2.patch


 This happens when we do a union on two relations, if one column comes from a 
 loader, the other matching column comes from a constant, and this column get 
 pruned. We prune for the one from loader and did not prune the constant. Thus 
 leaves union an inconsistent state. Here is a script:
 {code}
 a = load '1.txt' as (a0, a1:chararray, a2);
 b = load '2.txt' as (b0, b2);
 c = foreach b generate b0, 'hello', b2;
 d = union a, c;
 e = foreach d generate $0, $2;
 dump e;
 {code}
 1.txt: 
 {code}
 ulysses thompson64  1.90
 katie carson25  3.65
 {code}
 2.txt:
 {code}
 luke king   0.73
 holly davidson  2.43
 {code}
 expected output:
 (ulysses thompson,1.90)
 (katie carson,3.65)
 (luke king,0.73)
 (holly davidson,2.43)
 real output:
 (ulysses thompson,)
 (katie carson,)
 (luke king,0.73)
 (holly davidson,2.43)

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



[jira] Updated: (PIG-1146) Inconsistent column pruning in LOUnion

2009-12-23 Thread Daniel Dai (JIRA)

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

Daniel Dai updated PIG-1146:


Status: Open  (was: Patch Available)

 Inconsistent column pruning in LOUnion
 --

 Key: PIG-1146
 URL: https://issues.apache.org/jira/browse/PIG-1146
 Project: Pig
  Issue Type: Bug
  Components: impl
Affects Versions: 0.6.0
Reporter: Daniel Dai
Assignee: Daniel Dai
 Fix For: 0.7.0

 Attachments: PIG-1146-1.patch, PIG-1146-2.patch


 This happens when we do a union on two relations, if one column comes from a 
 loader, the other matching column comes from a constant, and this column get 
 pruned. We prune for the one from loader and did not prune the constant. Thus 
 leaves union an inconsistent state. Here is a script:
 {code}
 a = load '1.txt' as (a0, a1:chararray, a2);
 b = load '2.txt' as (b0, b2);
 c = foreach b generate b0, 'hello', b2;
 d = union a, c;
 e = foreach d generate $0, $2;
 dump e;
 {code}
 1.txt: 
 {code}
 ulysses thompson64  1.90
 katie carson25  3.65
 {code}
 2.txt:
 {code}
 luke king   0.73
 holly davidson  2.43
 {code}
 expected output:
 (ulysses thompson,1.90)
 (katie carson,3.65)
 (luke king,0.73)
 (holly davidson,2.43)
 real output:
 (ulysses thompson,)
 (katie carson,)
 (luke king,0.73)
 (holly davidson,2.43)

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



[jira] Updated: (PIG-1146) Inconsistent column pruning in LOUnion

2009-12-18 Thread Daniel Dai (JIRA)

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

Daniel Dai updated PIG-1146:


Attachment: PIG-1146-1.patch

 Inconsistent column pruning in LOUnion
 --

 Key: PIG-1146
 URL: https://issues.apache.org/jira/browse/PIG-1146
 Project: Pig
  Issue Type: Bug
  Components: impl
Affects Versions: 0.6.0
Reporter: Daniel Dai
 Fix For: 0.7.0

 Attachments: PIG-1146-1.patch


 This happens when we do a union on two relations, if one column comes from a 
 loader, the other matching column comes from a constant, and this column get 
 pruned. We prune for the one from loader and did not prune the constant. Thus 
 leaves union an inconsistent state. Here is a script:
 {code}
 a = load '1.txt' as (a0, a1:chararray, a2);
 b = load '2.txt' as (b0, b2);
 c = foreach b generate b0, 'hello', b2;
 d = union a, c;
 e = foreach d generate $0, $2;
 dump e;
 {code}
 1.txt: 
 {code}
 ulysses thompson64  1.90
 katie carson25  3.65
 {code}
 2.txt:
 {code}
 luke king   0.73
 holly davidson  2.43
 {code}
 expected output:
 (ulysses thompson,1.90)
 (katie carson,3.65)
 (luke king,0.73)
 (holly davidson,2.43)
 real output:
 (ulysses thompson,)
 (katie carson,)
 (luke king,0.73)
 (holly davidson,2.43)

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



[jira] Updated: (PIG-1146) Inconsistent column pruning in LOUnion

2009-12-18 Thread Daniel Dai (JIRA)

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

Daniel Dai updated PIG-1146:


Status: Patch Available  (was: Open)

 Inconsistent column pruning in LOUnion
 --

 Key: PIG-1146
 URL: https://issues.apache.org/jira/browse/PIG-1146
 Project: Pig
  Issue Type: Bug
  Components: impl
Affects Versions: 0.6.0
Reporter: Daniel Dai
Assignee: Daniel Dai
 Fix For: 0.7.0

 Attachments: PIG-1146-1.patch


 This happens when we do a union on two relations, if one column comes from a 
 loader, the other matching column comes from a constant, and this column get 
 pruned. We prune for the one from loader and did not prune the constant. Thus 
 leaves union an inconsistent state. Here is a script:
 {code}
 a = load '1.txt' as (a0, a1:chararray, a2);
 b = load '2.txt' as (b0, b2);
 c = foreach b generate b0, 'hello', b2;
 d = union a, c;
 e = foreach d generate $0, $2;
 dump e;
 {code}
 1.txt: 
 {code}
 ulysses thompson64  1.90
 katie carson25  3.65
 {code}
 2.txt:
 {code}
 luke king   0.73
 holly davidson  2.43
 {code}
 expected output:
 (ulysses thompson,1.90)
 (katie carson,3.65)
 (luke king,0.73)
 (holly davidson,2.43)
 real output:
 (ulysses thompson,)
 (katie carson,)
 (luke king,0.73)
 (holly davidson,2.43)

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