[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mona Chitnis updated PIG-3000: -- Attachment: PIG-3000-6.patch > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding >Assignee: Mona Chitnis > Attachments: PIG-3000-6.patch, unit_tests.patch > > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mona Chitnis updated PIG-3000: -- Attachment: unit_tests.patch > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding >Assignee: Mona Chitnis > Attachments: unit_tests.patch > > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mona Chitnis updated PIG-3000: -- Attachment: (was: unit_tests.patch) > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding >Assignee: Mona Chitnis > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mona Chitnis updated PIG-3000: -- Attachment: unit_tests.patch Attaching unit tests - unit_tests.patch. Will remove the 'conds' variable after rule NestedForEachUserFunc works properly. > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding >Assignee: Mona Chitnis > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai updated PIG-3000: Assignee: Mona Chitnis > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding >Assignee: Mona Chitnis > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message was sent by Atlassian JIRA (v6.1.5#6160)
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-3000: -- Description: In this Pig script: {code} A = load 'data' as (a:chararray); B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') ? 1 : 0); } {code} The Eval function UPPER is called twice for each record. This should be optimized so that the UPPER is called only once for each record was: In this Pig script: {case} A = load 'data' as (a:chararray); B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') ? 1 : 0); } {case} > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding > > In this Pig script: > {code} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {code} > The Eval function UPPER is called twice for each record. > This should be optimized so that the UPPER is called only once for each record -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIG-3000) Optimize nested foreach
[ https://issues.apache.org/jira/browse/PIG-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-3000: -- Description: In this Pig script: {case} A = load 'data' as (a:chararray); B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') ? 1 : 0); } {case} > Optimize nested foreach > --- > > Key: PIG-3000 > URL: https://issues.apache.org/jira/browse/PIG-3000 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.10.0 >Reporter: Richard Ding > > In this Pig script: > {case} > A = load 'data' as (a:chararray); > B = foreach A { c = UPPER(a); generate ((c eq 'TEST') ? 1 : 0), ((c eq 'DEV') > ? 1 : 0); } > {case} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira