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

Parquet not able to handle negative decimal numbers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.14.0
    • Labels:
      None

      Description

      Because of storing decimal numbers as fixed length bytes, Parquet Serde pads leading zeros for decimal numbers that has less bytes representation. This works fine for positive decimals, but messes up with negative ones, for which, leading 1 bits are needed.

        Attachments

        1. HIVE-7149.patch
          4 kB
          Xuefu Zhang

          Activity

            People

            • Assignee:
              xuefuz Xuefu Zhang
              Reporter:
              xuefuz Xuefu Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: