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

Drill returns big int result not matching expected result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.1.0-m1
    • 0.4.0
    • Functions - Drill
    • None

    Description

      I have several functions that take integers (int, big int). The output from drill displays the numbers with E to the x power. In some cases with huge integer results, it truncates the data. Here are some examples:

      select variance(voterzone) from voter;
      drill: 7.56958727143133E7
      postgres: 75695872.714313313313

      select var_samp(studentnum) from student;
      drill: 8.521370486035167E22
      postgres: 85213704860351887237202

      select variance(studentnum) from student;
      drill: 8.521370486035167E22
      postgres: 85213704860351887237202

      Attachments

        Activity

          People

            Unassigned Unassigned
            knguyen Krystal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: