You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jenny Thompson (JIRA)" <ji...@apache.org> on 2014/03/11 18:01:47 UTC

[jira] [Updated] (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:all-tabpanel ]

Jenny Thompson updated PIG-3805:
--------------------------------

    Description: 
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.

  was:
The exec function of ToString is written to handle a 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.


> 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)