pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Holloway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-1896) CastUtils - Converting Pig DataTypes to Java Data Types
Date Mon, 04 Apr 2011 18:25:05 GMT

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

Jonathan Holloway commented on PIG-1896:

I think this has been superseded by Loadcaster and convertToType.  Should prob be closed.

> CastUtils - Converting Pig DataTypes to Java Data Types
> -------------------------------------------------------
>                 Key: PIG-1896
>                 URL: https://issues.apache.org/jira/browse/PIG-1896
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Jonathan Holloway
>            Assignee: Jonathan Holloway
>            Priority: Minor
>         Attachments: PIG-1896-Test.patch, PIG-1896.patch
> I ran into an issue with parsing log lines whereby I had to generate a schema in a user
defined function.  Part of that involved converting various values into their associated data
types, but I couldn't see a way to do it via Pig.  
> Enclosed is a patch to convert org.apache.pig.data.DataType into an associated Java datatype
falling back to a String by default - should go into CastUtils.  Any comments/criticism, please
let me know.

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

View raw message