[
https://issues.apache.org/jira/browse/TAJO-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14482392#comment-14482392
]
ASF GitHub Bot commented on TAJO-740:
-------------------------------------
GitHub user seungunchoe opened a pull request:
https://github.com/apache/tajo/pull/515
TAJO-740: Implements function 'to_number'
Please review my patch.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/seungunchoe/tajo TAJO-740
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/515.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #515
----
commit 86312426886455bceb829876ae5d9724c6f8d1ba
Author: seungunchoe <[email protected]>
Date: 2015-04-07T01:27:27Z
TAJO-740 : Implements function 'to_number'
----
> Implements function 'to_number'
> -------------------------------
>
> Key: TAJO-740
> URL: https://issues.apache.org/jira/browse/TAJO-740
> Project: Tajo
> Issue Type: New Feature
> Affects Versions: 0.8.0
> Reporter: Seungun Choe
> Assignee: Seungun Choe
> Priority: Minor
> Attachments: TAJO-740.patch, TAJO-740_1.patch
>
>
> {code}
> to_number(text, text) / convert string to numeric / to_number('12,454.8-',
> '99G999D9S')
> to_number(text, text) / convert string to numeric / to_number('1-2,454.8',
> '99G999D9S')
> Results (Both) : -12454.8
> {code}
> This function follows postgresql rules.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)