[jira] Updated: (PIG-1610) 'union onschema' does handle some cases involving 'namespaced' column names in schema
[ https://issues.apache.org/jira/browse/PIG-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-1610: --- Status: Resolved (was: Patch Available) Hadoop Flags: [Reviewed] Resolution: Fixed Patch committed to trunk and 0.8 branch. > 'union onschema' does handle some cases involving 'namespaced' column names > in schema > - > > Key: PIG-1610 > URL: https://issues.apache.org/jira/browse/PIG-1610 > Project: Pig > Issue Type: Bug >Affects Versions: 0.8.0 >Reporter: Thejas M Nair >Assignee: Thejas M Nair > Fix For: 0.8.0 > > Attachments: PIG-1610.1.patch, PIG-1610.2.patch > > > case 1: > grunt> describe f; > f: {l1::a: bytearray,l1::b: bytearray} > grunt> describe l1; > l1: {a: bytearray,b: bytearray} > grunt> dump f; > (1,11) > (2,22) > (3,33) > grunt> dump l1; > (1,11) > (2,22) > (3,33) > grunt> u = union onschema f, l1; > grunt> describe u; > u: {l1::a: bytearray,l1::b: bytearray} > -- the dump u gives incorrect results > grunt> dump u; > (,) > (,) > (,) > (1,11) > (2,22) > (3,33) > case 2: > grunt> u = union onschema l1, f; > grunt> describe u; > 2010-09-13 15:11:13,877 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: l1::a > Details at logfile: /Users/tejas/pig_unions_err2/trunk/pig_1284410413970.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-1610) 'union onschema' does handle some cases involving 'namespaced' column names in schema
[ https://issues.apache.org/jira/browse/PIG-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-1610: --- Attachment: PIG-1610.2.patch PIG-1610.2.patch fixes the issues mentioned in previous comment. passes unit tests and test-patch. > 'union onschema' does handle some cases involving 'namespaced' column names > in schema > - > > Key: PIG-1610 > URL: https://issues.apache.org/jira/browse/PIG-1610 > Project: Pig > Issue Type: Bug >Affects Versions: 0.8.0 >Reporter: Thejas M Nair >Assignee: Thejas M Nair > Fix For: 0.8.0 > > Attachments: PIG-1610.1.patch, PIG-1610.2.patch > > > case 1: > grunt> describe f; > f: {l1::a: bytearray,l1::b: bytearray} > grunt> describe l1; > l1: {a: bytearray,b: bytearray} > grunt> dump f; > (1,11) > (2,22) > (3,33) > grunt> dump l1; > (1,11) > (2,22) > (3,33) > grunt> u = union onschema f, l1; > grunt> describe u; > u: {l1::a: bytearray,l1::b: bytearray} > -- the dump u gives incorrect results > grunt> dump u; > (,) > (,) > (,) > (1,11) > (2,22) > (3,33) > case 2: > grunt> u = union onschema l1, f; > grunt> describe u; > 2010-09-13 15:11:13,877 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: l1::a > Details at logfile: /Users/tejas/pig_unions_err2/trunk/pig_1284410413970.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-1610) 'union onschema' does handle some cases involving 'namespaced' column names in schema
[ https://issues.apache.org/jira/browse/PIG-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-1610: --- Status: Patch Available (was: Open) Release Note: This fixes the behavior for merging of column alias name that have a 'namespace' portion in them. - Alias such as 'nm::c1' and 'c1' in two separate relations specified in 'union onschema' are considered mergeable and in the schema of the union, the merged column alias will be 'c1'. - Alias such as 'nm1::c1' and 'nm2::c1' in two separate relations specified in 'union onschema' will not be merged together, in schema of the union there will be two columns with these names. Example - > describe f; f: {l1::a: int, l1::b: int, l1::c: int} > describe l1; l1: {a: int, b: int} > u = union onschema f,l1; > desc u; u: {a: int, b: int, l1::c: int} Test-patch and unit test cases have succeeded. > 'union onschema' does handle some cases involving 'namespaced' column names > in schema > - > > Key: PIG-1610 > URL: https://issues.apache.org/jira/browse/PIG-1610 > Project: Pig > Issue Type: Bug >Affects Versions: 0.8.0 >Reporter: Thejas M Nair >Assignee: Thejas M Nair > Fix For: 0.8.0 > > Attachments: PIG-1610.1.patch > > > case 1: > grunt> describe f; > f: {l1::a: bytearray,l1::b: bytearray} > grunt> describe l1; > l1: {a: bytearray,b: bytearray} > grunt> dump f; > (1,11) > (2,22) > (3,33) > grunt> dump l1; > (1,11) > (2,22) > (3,33) > grunt> u = union onschema f, l1; > grunt> describe u; > u: {l1::a: bytearray,l1::b: bytearray} > -- the dump u gives incorrect results > grunt> dump u; > (,) > (,) > (,) > (1,11) > (2,22) > (3,33) > case 2: > grunt> u = union onschema l1, f; > grunt> describe u; > 2010-09-13 15:11:13,877 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: l1::a > Details at logfile: /Users/tejas/pig_unions_err2/trunk/pig_1284410413970.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-1610) 'union onschema' does handle some cases involving 'namespaced' column names in schema
[ https://issues.apache.org/jira/browse/PIG-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-1610: --- Attachment: PIG-1610.1.patch > 'union onschema' does handle some cases involving 'namespaced' column names > in schema > - > > Key: PIG-1610 > URL: https://issues.apache.org/jira/browse/PIG-1610 > Project: Pig > Issue Type: Bug >Affects Versions: 0.8.0 >Reporter: Thejas M Nair >Assignee: Thejas M Nair > Fix For: 0.8.0 > > Attachments: PIG-1610.1.patch > > > case 1: > grunt> describe f; > f: {l1::a: bytearray,l1::b: bytearray} > grunt> describe l1; > l1: {a: bytearray,b: bytearray} > grunt> dump f; > (1,11) > (2,22) > (3,33) > grunt> dump l1; > (1,11) > (2,22) > (3,33) > grunt> u = union onschema f, l1; > grunt> describe u; > u: {l1::a: bytearray,l1::b: bytearray} > -- the dump u gives incorrect results > grunt> dump u; > (,) > (,) > (,) > (1,11) > (2,22) > (3,33) > case 2: > grunt> u = union onschema l1, f; > grunt> describe u; > 2010-09-13 15:11:13,877 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: l1::a > Details at logfile: /Users/tejas/pig_unions_err2/trunk/pig_1284410413970.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-1610) 'union onschema' does handle some cases involving 'namespaced' column names in schema
[ https://issues.apache.org/jira/browse/PIG-1610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated PIG-1610: --- Summary: 'union onschema' does handle some cases involving 'namespaced' column names in schema (was: 'union onschema' does handle some cases involving 'namespaced' variable names) > 'union onschema' does handle some cases involving 'namespaced' column names > in schema > - > > Key: PIG-1610 > URL: https://issues.apache.org/jira/browse/PIG-1610 > Project: Pig > Issue Type: Bug >Affects Versions: 0.8.0 >Reporter: Thejas M Nair >Assignee: Thejas M Nair > Fix For: 0.8.0 > > > case 1: > grunt> describe f; > f: {l1::a: bytearray,l1::b: bytearray} > grunt> describe l1; > l1: {a: bytearray,b: bytearray} > grunt> dump f; > (1,11) > (2,22) > (3,33) > grunt> dump l1; > (1,11) > (2,22) > (3,33) > grunt> u = union onschema f, l1; > grunt> describe u; > u: {l1::a: bytearray,l1::b: bytearray} > -- the dump u gives incorrect results > grunt> dump u; > (,) > (,) > (,) > (1,11) > (2,22) > (3,33) > case 2: > grunt> u = union onschema l1, f; > grunt> describe u; > 2010-09-13 15:11:13,877 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR > 1108: Duplicate schema alias: l1::a > Details at logfile: /Users/tejas/pig_unions_err2/trunk/pig_1284410413970.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.