Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15334

HIVE-13945 changed scale rules for division

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • Types
    • None

    Description

      Looks like HIVE-13945 change the decimal division precision/scale rules - the explanation being "Changed the default decimal precision in division, not sure why it was so low by default." (https://issues.apache.org/jira/browse/HIVE-13945?focusedCommentId=15354403&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15354403)

      As far as I can tell this causes decimal division to have a minimum scale of 18.
      cc sershe - the rules that were in place were based on the SQL Server precision/scale rules in https://msdn.microsoft.com/en-us/library/ms190476.aspx

      I'd like to revert this change to precision/scale rules

      Attachments

        1. HIVE-15334.1.patch
          11 kB
          Jason Dere
        2. HIVE-15334.2.patch
          936 kB
          Jason Dere
        3. HIVE-15334.3.patch
          936 kB
          Jason Dere

        Issue Links

          Activity

            People

              jdere Jason Dere
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: