hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-989) Allow type merge between numerical type and non-numerical type
Date Thu, 01 Oct 2009 21:35:23 GMT

    [ https://issues.apache.org/jira/browse/PIG-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761351#action_12761351
] 

Daniel Dai commented on PIG-989:
--------------------------------

I agree. Merge numerical type and non-numerical type have a semantic problem of which way
to cast (whether to cast numerical to non-numerical, or vice versa). I think at this point,
we can just fix the error message.

> Allow type merge between numerical type and non-numerical type
> --------------------------------------------------------------
>
>                 Key: PIG-989
>                 URL: https://issues.apache.org/jira/browse/PIG-989
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.5.0
>            Reporter: Daniel Dai
>
> Currently, we do not allow type merge between numerical type and non-numerical type.
And the error message is confusing. 
> Eg, if you run:
> a = load '1.txt' as (a0:chararray, a1:chararray);
> b = load '2.txt' as (b0:long, b1:chararray);
> c = join a by a0, b by b0;
> dump c;
> And the error message is "ERROR 1051: Cannot cast to Unknown"
> We shall:
> 1. Allow the type merge between numerical type and non-numerical type
> 2. Or at least, provide more meaningful error message to the user

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


Mime
View raw message