You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Matt Pestritto (JIRA)" <ji...@apache.org> on 2009/12/14 18:53:18 UTC

[jira] Created: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

Function from_unixtime only takes Int.  Override to support Long
----------------------------------------------------------------

                 Key: HIVE-983
                 URL: https://issues.apache.org/jira/browse/HIVE-983
             Project: Hadoop Hive
          Issue Type: Improvement
            Reporter: Matt Pestritto


UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 

We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.

FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
]
09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
s org.apache.hadoop.io.LongWritable]


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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Zheng Shao updated HIVE-983:
----------------------------

       Resolution: Fixed
    Fix Version/s: 0.6.0
                   0.5.0
     Release Note: HIVE-983. Function from_unixtime takes long. (Ning Zhang via zshao)
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed to both trunk and branch-0.5. Thanks Ning!

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>             Fix For: 0.5.0, 0.6.0
>
>         Attachments: HIVE-983.patch, HIVE-983_2.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Commented: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800064#action_12800064 ] 

Zheng Shao commented on HIVE-983:
---------------------------------

+1. Will commit after test.


> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>         Attachments: HIVE-983.patch, HIVE-983_2.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Matt Pestritto updated HIVE-983:
--------------------------------

    Priority: Minor  (was: Major)

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Priority: Minor
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Assigned: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Ning Zhang reassigned HIVE-983:
-------------------------------

    Assignee: Ning Zhang

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Ning Zhang updated HIVE-983:
----------------------------

    Status: Patch Available  (was: Open)

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>         Attachments: HIVE-983.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Ning Zhang updated HIVE-983:
----------------------------

    Attachment: HIVE-983_2.patch

Uploading a new patch addressing Zheng's comemnts. 

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>         Attachments: HIVE-983.patch, HIVE-983_2.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Commented: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799912#action_12799912 ] 

Ning Zhang commented on HIVE-983:
---------------------------------

> We also have dates stored with milliseconds which blows up the integer limitation. Long support will be helpful.
Matt, please note that the first parameter in from_unixtime() is the # of "seconds". So after we add the support for LongWritable, you still need to convert milliseconds to seconds when calling the function. 

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Commented: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800030#action_12800030 ] 

Zheng Shao commented on HIVE-983:
---------------------------------

Code looks good, but please follow Java code convention:

http://java.sun.com/docs/codeconv/CodeConventions.pdf
Page 17 top line.

{code}
Note: if statements always use braces {}. Avoid the following error-prone form:
if (condition) //AVOID! THIS OMITS THE BRACES {}!
  statement;
{code}


> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>         Attachments: HIVE-983.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Carl Steinbach updated HIVE-983:
--------------------------------

      Component/s: Query Processor
    Fix Version/s:     (was: 0.6.0)

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>             Fix For: 0.5.0
>
>         Attachments: HIVE-983.patch, HIVE-983_2.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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


[jira] Updated: (HIVE-983) Function from_unixtime only takes Int. Override to support Long

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

Ning Zhang updated HIVE-983:
----------------------------

    Attachment: HIVE-983.patch

Uploading patch HIVE-983.patch

> Function from_unixtime only takes Int.  Override to support Long
> ----------------------------------------------------------------
>
>                 Key: HIVE-983
>                 URL: https://issues.apache.org/jira/browse/HIVE-983
>             Project: Hadoop Hive
>          Issue Type: Improvement
>            Reporter: Matt Pestritto
>            Assignee: Ning Zhang
>            Priority: Minor
>         Attachments: HIVE-983.patch
>
>
> UDFFromUnixTime.java only supports int.  We have dates that are future dated so they fail when it tries to parse.  Can there be additional support for LongWritable input parameter ? 
> We also have dates stored with milliseconds which blows up the integer limitation.  Long support will be helpful.
> FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [class org.apache.hadoop.io.LongWritable
> ]
> 09/12/14 11:42:10 ERROR ql.Driver: FAILED: Error in semantic analysis: line 1:7 Function Argument Type Mismatch from_unixtime: Looking for UDF "from_unixtime" with parameters [clas
> s org.apache.hadoop.io.LongWritable]

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