HIVE-6246 and HIVE-6327 added decimal support in most of the mathematical UDFs, including radians(). However, such support is still missing for UDF degrees(). This fills the gap.
Sign(a) UDF is not supported for decimal type
Add DECIMAL data type
A few mathematic functions don't take decimal input
Also documented in Data Types:
Lars Francke documented this in the wiki in February 2014 (and I added version information in March):
Patch committed to trunk. Thanks to Jason for the review.
Wiki is updated. https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types
The above failed test case has been flaky. It's unrelated to the changes in the patch.
Overall: -1 at least one tests failed
Here are the results of testing the latest attachment:
ERROR: -1 due to 1 failed/errored test(s), 5041 tests executed
Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1244/testReport
Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1244/console
Tests exited with: TestsFailedException: 1 tests failed
This message is automatically generated.
ATTACHMENT ID: 12627663
+1 assuming tests pass