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

0 is added when you insert decimal value which number of fractional digits is less than defined scale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.0.0
    • None
    • None
    • None

    Description

      hive> create table test_decimal (d decimal(3,2));
      hive> insert into table test_decimal values (0.1);
      hive> select * from test_decimal;
      0.10
      

      Extra 0 is added to the end of the result.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              taksaito Takahiko Saito
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: