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

Will not pad Decimal numbers with trailing zeros if select from value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None

      Description

      How to reproduce:

      hive> SELECT CAST(1 AS decimal(38, 18));
      OK
      1
      Time taken: 0.226 seconds, Fetched: 1 row(s)
      hive> CREATE TABLE HIVE_22139 AS SELECT CAST(1 AS decimal(38, 18)) as c;
      OK
      Time taken: 2.278 seconds
      hive> SELECT * FROM HIVE_22139;
      OK
      1.000000000000000000
      Time taken: 0.07 seconds, Fetched: 1 row(s)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nareshpr Naresh P R
                Reporter:
                yumwang Yuming Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: