You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "smit hinsu (JIRA)" <ji...@apache.org> on 2014/03/13 19:17:44 UTC
[jira] [Commented] (PIG-3805) ToString(datetime [, format string])
doesn't work without the second argument
[ 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)