pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aniket Mokashi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-3259) Optimize byte to Long/Integer conversions
Date Tue, 27 May 2014 22:18:05 GMT

     [ https://issues.apache.org/jira/browse/PIG-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aniket Mokashi updated PIG-3259:
--------------------------------

    Fix Version/s:     (was: 0.13.0)
                   0.14.0

> Optimize byte to Long/Integer conversions
> -----------------------------------------
>
>                 Key: PIG-3259
>                 URL: https://issues.apache.org/jira/browse/PIG-3259
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.11, 0.11.1
>            Reporter: Prashant Kommireddi
>            Assignee: Prashant Kommireddi
>             Fix For: 0.14.0
>
>         Attachments: byteToLong.xlsx
>
>
> These conversions can be performing better. If the input is not numeric (1234abcd) the
code calls Double.valueOf(String) regardless before finally returning null. Any script that
inadvertently (user's mistake or not) tries to cast non-numeric column to int or long would
result in many wasteful calls. 
> We can avoid this and only handle the cases we find the input to be a decimal number
(1234.56) and return null otherwise even before trying Double.valueOf(String).



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

Mime
View raw message