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

C++ Client Decimal ignores leading zeros

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: Client - C++
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: