Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1144

C++ Client Decimal ignores leading zeros

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Client - C++
    • None

    Description

      For cases where a decimal number goes through an arithmetic operation and ends up with leading zeros, the zeros are dropped and an error occurs.
      For example, a query like this

      select cast('-99999999' as decimal(9,0)) / cast('12345678901234.56789123456789' as decimal(28,14)) FROM `dfs`.`default`.`/opt/drill/raw-files/voter` limit 1
      

      will cause an error

      Attachments

        1. DRILL-1144.diff
          2 kB
          Norris Lee

        Activity

          People

            DrillCommitter DrillCommitter
            norrisl Norris Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: