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

Drill pushed invalid SQL to SQL Server when ceil scalar function used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.0
    • None
    • Storage - JDBC
    • None
    • Drill 1.10
      SQL Server 2016

    Description

      plugin defined to SQL Server via JDBC

      following statement sent to Drill which generates invalid SQL
      https://docs.microsoft.com/en-us/sql/t-sql/functions/mathematical-functions-transact-sql

      select TBINT.RNUM, CEIL( TBINT.CBINT ) from certsqlserver.dbo.TBINT
      Errors:
      DATA_READ ERROR: The JDBC storage plugin failed while trying setup the SQL query.

      SELECT "RNUM", CEIL("CBINT") AS "EXPR$1" FROM "dbo"."TBINT"

      Attachments

        Activity

          People

            Unassigned Unassigned
            the6campbells N Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: