You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "N Campbell (JIRA)" <ji...@apache.org> on 2017/07/02 12:27:00 UTC

[jira] [Updated] (DRILL-5654) Drill pushed invalid SQL to SQL Server when round scalar function used

     [ https://issues.apache.org/jira/browse/DRILL-5654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

N Campbell updated DRILL-5654:
------------------------------
    Component/s:     (was:  Server)
                 Storage - JDBC

> Drill pushed invalid SQL to SQL Server when round scalar function used
> ----------------------------------------------------------------------
>
>                 Key: DRILL-5654
>                 URL: https://issues.apache.org/jira/browse/DRILL-5654
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - JDBC
>    Affects Versions: 1.10.0
>         Environment: Drill 1.10
> SQL Server 2016
>            Reporter: N Campbell
>
> plugin defined to SQL Server via JDBC
> Following statement sent to Drill which fails due to SQL pushed to SQL Server. 
> select round(-1.50) from certsqlserver.dbo.TVERSION
> DATA_READ ERROR: The JDBC storage plugin failed while trying setup the SQL query. 
> SELECT CAST(CAST(-2 AS DOUBLE) AS ANY) AS "EXPR$0"
> FROM "dbo"."TVERSION"
> SQL Server DDL
> create table "TVERSION" ("RNUM" integer   not null , "C1" integer, "CVER" char(6), "CNNULL" integer, "CCNULL" char(1));
> go
> 			
> grant select on "TVERSION" to public;
> go
> 			
> insert into "TVERSION" ("RNUM", "C1", "CVER", "CNNULL", "CCNULL") values ( 0, 1, '2.0', NULL, NULL);
> go
> 		



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)