You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2009/10/01 00:59:23 UTC

[jira] Created: (HIVE-861) NumberFormatException in sum and avg

NumberFormatException in sum and avg
------------------------------------

                 Key: HIVE-861
                 URL: https://issues.apache.org/jira/browse/HIVE-861
             Project: Hadoop Hive
          Issue Type: Bug
            Reporter: Zheng Shao


{code}
SELECT sum('a'), avg('a') FROM zshao_tt;
{code}

It should return NULL for both columns, instead of throwing out exceptions.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-861) NumberFormatException in sum and avg

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zheng Shao updated HIVE-861:
----------------------------

    Attachment: HIVE-861.1.patch

This patch fixes the problem and adds a test.

> NumberFormatException in sum and avg
> ------------------------------------
>
>                 Key: HIVE-861
>                 URL: https://issues.apache.org/jira/browse/HIVE-861
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>         Attachments: HIVE-861.1.patch
>
>
> {code}
> SELECT sum('a'), avg('a') FROM zshao_tt;
> {code}
> It should return NULL for both columns, instead of throwing out exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HIVE-861) NumberFormatException in sum and avg

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain resolved HIVE-861.
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Committed. Thanks Zheng

> NumberFormatException in sum and avg
> ------------------------------------
>
>                 Key: HIVE-861
>                 URL: https://issues.apache.org/jira/browse/HIVE-861
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>         Attachments: HIVE-861.1.patch
>
>
> {code}
> SELECT sum('a'), avg('a') FROM zshao_tt;
> {code}
> It should return NULL for both columns, instead of throwing out exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-861) NumberFormatException in sum and avg

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761277#action_12761277 ] 

Namit Jain commented on HIVE-861:
---------------------------------

Looks good - will commit if the tests pass

> NumberFormatException in sum and avg
> ------------------------------------
>
>                 Key: HIVE-861
>                 URL: https://issues.apache.org/jira/browse/HIVE-861
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>         Attachments: HIVE-861.1.patch
>
>
> {code}
> SELECT sum('a'), avg('a') FROM zshao_tt;
> {code}
> It should return NULL for both columns, instead of throwing out exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-861) NumberFormatException in sum and avg

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-861:
--------------------------------

    Fix Version/s: 0.5.0
      Component/s: UDF

> NumberFormatException in sum and avg
> ------------------------------------
>
>                 Key: HIVE-861
>                 URL: https://issues.apache.org/jira/browse/HIVE-861
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Zheng Shao
>             Fix For: 0.5.0
>
>         Attachments: HIVE-861.1.patch
>
>
> {code}
> SELECT sum('a'), avg('a') FROM zshao_tt;
> {code}
> It should return NULL for both columns, instead of throwing out exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.