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

POWER function with integer base and exponent returns decimal result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • Future
    • Future
    • Functions - Drill
    • None

    Description

      Ran the following query in drill:
      0: jdbc:drill:schema=dfs> select power(12, 5) from dfs.`student` where rownum = 10;
      ------------

      EXPR$0

      ------------

      248832.0

      ------------

      Compared to postgres, mysql and oracle, they all returned an integer of 248832

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: