You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2011/05/13 20:07:47 UTC

[jira] [Created] (PIG-2071) casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases

casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases
-------------------------------------------------------------------------------------------------------------

                 Key: PIG-2071
                 URL: https://issues.apache.org/jira/browse/PIG-2071
             Project: Pig
          Issue Type: Bug
            Reporter: Thejas M Nair
            Assignee: Thejas M Nair


In PIG-1536, if a column in output of union has a source column one input of type charraray and in other it is of a numeric type, the column of numeric type will be cast to chararray. But in all other cases, chararray and numeric types are considered incompatible, and as a result such implicit casting is not done.
To be consistent with other cases, union also should consider chararray and numeric types to be incompatible.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PIG-2071) casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair resolved PIG-2071.
--------------------------------

    Resolution: Fixed

Patch committed to trunk and 0.9 branch.


> casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2071
>                 URL: https://issues.apache.org/jira/browse/PIG-2071
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>         Attachments: PIG-2071.1.patch
>
>
> In PIG-1536, if a column in output of union has a source column one input of type charraray and in other it is of a numeric type, the column of numeric type will be cast to chararray. But in all other cases, chararray and numeric types are considered incompatible, and as a result such implicit casting is not done.
> To be consistent with other cases, union also should consider chararray and numeric types to be incompatible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIG-2071) casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases

Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034115#comment-13034115 ] 

Daniel Dai commented on PIG-2071:
---------------------------------

+1

> casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2071
>                 URL: https://issues.apache.org/jira/browse/PIG-2071
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>         Attachments: PIG-2071.1.patch
>
>
> In PIG-1536, if a column in output of union has a source column one input of type charraray and in other it is of a numeric type, the column of numeric type will be cast to chararray. But in all other cases, chararray and numeric types are considered incompatible, and as a result such implicit casting is not done.
> To be consistent with other cases, union also should consider chararray and numeric types to be incompatible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIG-2071) casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated PIG-2071:
-------------------------------

    Affects Version/s: 0.9.0
        Fix Version/s: 0.9.0

> casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2071
>                 URL: https://issues.apache.org/jira/browse/PIG-2071
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>
> In PIG-1536, if a column in output of union has a source column one input of type charraray and in other it is of a numeric type, the column of numeric type will be cast to chararray. But in all other cases, chararray and numeric types are considered incompatible, and as a result such implicit casting is not done.
> To be consistent with other cases, union also should consider chararray and numeric types to be incompatible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIG-2071) casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated PIG-2071:
-------------------------------

    Attachment: PIG-2071.1.patch

PIG-2071.1.patch - test-patch and unit tests succeeded with this patch.  (except for one test that is currently failing in trunk as well).

> casting numeric type to chararray during schema merge for union is inconsistent with other schema merge cases
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-2071
>                 URL: https://issues.apache.org/jira/browse/PIG-2071
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>         Attachments: PIG-2071.1.patch
>
>
> In PIG-1536, if a column in output of union has a source column one input of type charraray and in other it is of a numeric type, the column of numeric type will be cast to chararray. But in all other cases, chararray and numeric types are considered incompatible, and as a result such implicit casting is not done.
> To be consistent with other cases, union also should consider chararray and numeric types to be incompatible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira