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

TRUNC(n1) function returns a decimal instead of int

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.1.0-m1
    • 1.0.0
    • Functions - Drill
    • None

    Description

      The TRUNC(n1) function should return the integer part of n1 as an int. In drill, however, the value returned is a decimal. For example,

      select trunc(15.79) from voter where voter_id=10;
      returns 15.0
      The other database platforms return an int value of 15.

      Attachments

        1. DRILL-708.patch
          1 kB
          Yash Sharma

        Activity

          People

            yash360@gmail.com Yash Sharma
            knguyen Krystal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: