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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1
    • None
    • SQL
    • 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

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

              Dates

                Created:
                Updated: