[jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input

2014-02-04 Thread Xuefu Zhang (JIRA)

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

Xuefu Zhang updated HIVE-6327:
--

   Resolution: Fixed
Fix Version/s: 0.13.0
 Release Note: Wiki updated.
   Status: Resolved  (was: Patch Available)

Patch committed to trunk. Thanks Jason and others for the review.

> A few mathematic functions don't take decimal input
> ---
>
> Key: HIVE-6327
> URL: https://issues.apache.org/jira/browse/HIVE-6327
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.11.0, 0.12.0
>Reporter: Xuefu Zhang
>Assignee: Xuefu Zhang
> Fix For: 0.13.0
>
> Attachments: HIVE-6327.1.patch, HIVE-6327.patch
>
>
> A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
> argument.
> {code}
> hive> show tables;
> OK
> Time taken: 0.534 seconds
> hive> create table test(d decimal(5,2));
> OK
> Time taken: 0.351 seconds
> hive> select sin(d) from test;
> FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
> matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
> (decimal(5,2)). Possible choices: _FUNC_(double)  
> {code}
> HIVE-6246 covers only sign() function. The remaining ones, including sin, 
> cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. 
> These are non-generic UDFs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input

2014-02-03 Thread Xuefu Zhang (JIRA)

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

Xuefu Zhang updated HIVE-6327:
--

Attachment: HIVE-6327.1.patch

Patch #1 updated:

1. removed a tab
2. if condition, changed to >= 1.0

> A few mathematic functions don't take decimal input
> ---
>
> Key: HIVE-6327
> URL: https://issues.apache.org/jira/browse/HIVE-6327
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.11.0, 0.12.0
>Reporter: Xuefu Zhang
>Assignee: Xuefu Zhang
> Attachments: HIVE-6327.1.patch, HIVE-6327.patch
>
>
> A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
> argument.
> {code}
> hive> show tables;
> OK
> Time taken: 0.534 seconds
> hive> create table test(d decimal(5,2));
> OK
> Time taken: 0.351 seconds
> hive> select sin(d) from test;
> FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
> matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
> (decimal(5,2)). Possible choices: _FUNC_(double)  
> {code}
> HIVE-6246 covers only sign() function. The remaining ones, including sin, 
> cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. 
> These are non-generic UDFs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input

2014-01-31 Thread Xuefu Zhang (JIRA)

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

Xuefu Zhang updated HIVE-6327:
--

Status: Patch Available  (was: Open)

> A few mathematic functions don't take decimal input
> ---
>
> Key: HIVE-6327
> URL: https://issues.apache.org/jira/browse/HIVE-6327
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.12.0, 0.11.0
>Reporter: Xuefu Zhang
>Assignee: Xuefu Zhang
> Attachments: HIVE-6327.patch
>
>
> A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
> argument.
> {code}
> hive> show tables;
> OK
> Time taken: 0.534 seconds
> hive> create table test(d decimal(5,2));
> OK
> Time taken: 0.351 seconds
> hive> select sin(d) from test;
> FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
> matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
> (decimal(5,2)). Possible choices: _FUNC_(double)  
> {code}
> HIVE-6246 covers only sign() function. The remaining ones, including sin, 
> cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. 
> These are non-generic UDFs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input

2014-01-31 Thread Xuefu Zhang (JIRA)

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

Xuefu Zhang updated HIVE-6327:
--

Attachment: HIVE-6327.patch

> A few mathematic functions don't take decimal input
> ---
>
> Key: HIVE-6327
> URL: https://issues.apache.org/jira/browse/HIVE-6327
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.11.0, 0.12.0
>Reporter: Xuefu Zhang
>Assignee: Xuefu Zhang
> Attachments: HIVE-6327.patch
>
>
> A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
> argument.
> {code}
> hive> show tables;
> OK
> Time taken: 0.534 seconds
> hive> create table test(d decimal(5,2));
> OK
> Time taken: 0.351 seconds
> hive> select sin(d) from test;
> FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
> matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
> (decimal(5,2)). Possible choices: _FUNC_(double)  
> {code}
> HIVE-6246 covers only sign() function. The remaining ones, including sin, 
> cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. 
> These are non-generic UDFs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input

2014-01-30 Thread Xuefu Zhang (JIRA)

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

Xuefu Zhang updated HIVE-6327:
--

Description: 
A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
argument.
{code}
hive> show tables;
OK
Time taken: 0.534 seconds
hive> create table test(d decimal(5,2));
OK
Time taken: 0.351 seconds
hive> select sin(d) from test;
FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
(decimal(5,2)). Possible choices: _FUNC_(double)  
{code}

HIVE-6246 covers only sign() function. The remaining ones, including sin, cos, 
tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. These are 
non-generic UDFs.


  was:
A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
argument.
{code}
hive> show tables;
OK
Time taken: 0.534 seconds
hive> create table test(d decimal(5,2));
OK
Time taken: 0.351 seconds
hive> select sin(d) from test;
FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
(decimal(5,2)). Possible choices: _FUNC_(double)  
{code}

HIVE-6246 covers only sign() function. The remaining ones, including sin, cos, 
tan, asin, acos, atan, exp, log, log10, log2, radians, and sqrt. These are 
non-generic UDFs.



> A few mathematic functions don't take decimal input
> ---
>
> Key: HIVE-6327
> URL: https://issues.apache.org/jira/browse/HIVE-6327
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.11.0, 0.12.0
>Reporter: Xuefu Zhang
>Assignee: Xuefu Zhang
>
> A few mathematical functions, such as sin() cos(), etc. don't take decimal as 
> argument.
> {code}
> hive> show tables;
> OK
> Time taken: 0.534 seconds
> hive> create table test(d decimal(5,2));
> OK
> Time taken: 0.351 seconds
> hive> select sin(d) from test;
> FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No 
> matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with 
> (decimal(5,2)). Possible choices: _FUNC_(double)  
> {code}
> HIVE-6246 covers only sign() function. The remaining ones, including sin, 
> cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. 
> These are non-generic UDFs.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)