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

Beeline/JDBC output of decimal values is not 0-padded, does not match with CLI output

    XMLWordPrintableJSON

    Details

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

      Description

      HIVE-12063 changed the output of decimal values to pad zeros to the column's full scale for Hive CLI.
      It looks like Beeline and JDBC still have the old behavior that strips trailing 0s.

      Beeline:

      +---------------+---------------+--+
      |      c1       |      c2       |
      +---------------+---------------+--+
      | 1.9999999999  | 1.9999999999  |
      | 9.9999999999  | 9.9999999999  |
      +---------------+---------------+--+
      

      HiveCli:

      1.99999999990	1.9999999999
      9.99999999990	9.9999999999
      

        Attachments

        1. HIVE-12772.3.patch
          10 kB
          Jason Dere
        2. HIVE-12772.2.patch
          10 kB
          Jason Dere
        3. HIVE-12772.1.patch
          4 kB
          Jason Dere

          Issue Links

            Activity

              People

              • Assignee:
                jdere Jason Dere
                Reporter:
                jdere Jason Dere
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: