Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # dev >> [jira] [Commented] (HIVE-6012) restore backward compatibility of arithmetic operations


+
Sergey Shelukhin 2014-01-23, 19:12
+
Hive QA 2014-01-25, 14:15
+
Hive QA 2014-01-28, 22:47
+
Lefty Leverenz 2014-01-29, 10:56
+
Hive QA 2014-01-29, 20:11
+
Thejas M Nair 2014-01-29, 20:40
+
Jason Dere 2014-01-29, 22:16
Copy link to this message
-
[jira] [Commented] (HIVE-6012) restore backward compatibility of arithmetic operations

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

Jason Dere commented on HIVE-6012:
----------------------------------

Had some offline discussion about the config setting to use here.  Suggestion was to use a single config setting (say, hive.compat) to control backward compatibility behavior. Rather than make the config setting a simple true/false switch, the config setting would be a string to indicate what version of Hive behavior to support (0.12, 0.13, etc). So for Thejas' example in his comment, setting hive.compat=0.12 would set int / int => double.  If there were additional (configurable) behavior changes added in 0.14, they could be disabled by setting hive.compat=0.13, or even back to 0.12 if the user still wants the old int / int behavior.
I'll try to take a crack at this.

> 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-6012.3.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)

 
+
Hive QA 2014-02-04, 13:22
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB