pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "smit hinsu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3805) ToString(datetime [, format string]) doesn't work without the second argument
Date Thu, 13 Mar 2014 18:17:44 GMT

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

smit hinsu commented on PIG-3805:
---------------------------------

I am new to Apache Pig and tried to work on this issue as a start.

>From my basic investigation it seems testConversionBetweenDateTimeAndString() function
in test/org/apache/pig/test/TestBuiltin.java has some tested ToString method without second
argument.

Am I missing something? I downloaded code from the "git clone https://github.com/apache/pig.git".


> ToString(datetime [, format string]) doesn't work without the second argument
> -----------------------------------------------------------------------------
>
>                 Key: PIG-3805
>                 URL: https://issues.apache.org/jira/browse/PIG-3805
>             Project: Pig
>          Issue Type: Bug
>          Components: internal-udfs
>    Affects Versions: 0.12.0
>            Reporter: Jenny Thompson
>            Priority: Minor
>              Labels: easyfix
>
> The exec function of ToString is written to handle 1 or 2 arguments (it defaults to ISO,
which is consistent with ToDate).
> However, the getArgToFuncMapping function returns only one FuncSpec, requiring the formatString
argument.
> To fix: just return add another FuncSpec to getArcToFuncMapping.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message