You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2016/06/24 22:32:16 UTC
[jira] [Updated] (PIG-4933)
TestDataBagAccess.testBagConstantFlatten1/TestLogicalPlanBuilder.testQuery90
broken after PIG-2315
[ https://issues.apache.org/jira/browse/PIG-4933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Noguchi updated PIG-4933:
------------------------------
Summary: TestDataBagAccess.testBagConstantFlatten1/TestLogicalPlanBuilder.testQuery90 broken after PIG-2315 (was: TestDataBagAccess.testBagConstantFlatten1 broken after PIG-2315)
Found one more test, TestLogicalPlanBuilder.testQuery90, failing.
{code}
a = load 'test3.txt' as (name:chararray, age:int, gpa:float);
b = group a by (name, age);
c = foreach b generate group as mygroup:(myname, myage)
{code}
Schema for mygroup is becoming (bytearray, bytearray).
Basically a same pattern from the description when tuple/bag(and probably map) is renamed, it still inserts the casting corrupting the schema.
Two separate issues.
* casts should not be inserted in the first place
* Even if casts are inserted, they shouldn't be casting to "bytearray".
I'll see if I can work on it next week, but until then trunk is broken for these cases. If quick fix is needed, we can skip this feature for tuple/map/bag and bring back the previous behavior. Cc: [~daijy]
Sorry again for not catching these failures before committing the patch.
> TestDataBagAccess.testBagConstantFlatten1/TestLogicalPlanBuilder.testQuery90 broken after PIG-2315
> ---------------------------------------------------------------------------------------------------
>
> Key: PIG-4933
> URL: https://issues.apache.org/jira/browse/PIG-4933
> Project: Pig
> Issue Type: Bug
> Reporter: Koji Noguchi
>
> {code:title=test.pig}
> A = load '1line.txt';
> B = foreach A generate {(('p1-t1-e1', 'p1-t1-e2'),('p1-t2-e1', 'p1-t2-e2')),(('p2-t1-e1', 'p2-t1-e2'), ('p2-t2-e1', 'p2-t2-e2'))};
> C = foreach B generate $0 as pairbag : { pair: ( t1: (e1, e2), t2: (e1, e2) ) };
> DUMP C;
> {code}
> Above results in empty '()'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)