[ 
https://issues.apache.org/jira/browse/HIVE-6012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885159#comment-13885159
 ] 

Lefty Leverenz commented on HIVE-6012:
--------------------------------------

Please document *hive.sql.ansi* in hive-default.xml.template, then I'll put it 
in the Configuration Properties wikidoc.

When this is committed, details should also be documented in the wiki.  The int 
& float operations go in the Arithmetic Operators table in Operators and UDFs.  
Decimal operations could go in the Decimal Types section of the Types doc, 
unless you want to keep all this information together and just have a link from 
the Types doc to the Arithmetic Operators table.

Quick reference:

* [Operators and UDFs:  Arithmetic Operators 
|https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-ArithmeticOperators]
* [Decimal Types:  Mathematical UDFs 
|https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=27838462#LanguageManualTypes-MathematicalUDFs]
* [Configuration Properties 
|https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties]

> restore backward compatibility of arithmetic operations
> -------------------------------------------------------
>
>                 Key: HIVE-6012
>                 URL: https://issues.apache.org/jira/browse/HIVE-6012
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.13.0
>            Reporter: Thejas M Nair
>            Assignee: Jason Dere
>         Attachments: HIVE-6012.1.patch, HIVE-6012.2.patch
>
>
> HIVE-5356 changed the behavior of some of the arithmetic operations, and the 
> change is not backward compatible, as pointed out in this [jira 
> comment|https://issues.apache.org/jira/browse/HIVE-5356?focusedCommentId=13813398&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13813398]
> {code}
> int / int => decimal
> float / float => double
> float * float => double
> float + float => double
> {code}



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

Reply via email to