drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parth Chandra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2349) null comparison behavior difference between drill and postgres
Date Mon, 02 Mar 2015 19:27:05 GMT

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

Parth Chandra updated DRILL-2349:
---------------------------------
    Priority: Critical  (was: Major)

> null comparison behavior difference between drill and postgres
> --------------------------------------------------------------
>
>                 Key: DRILL-2349
>                 URL: https://issues.apache.org/jira/browse/DRILL-2349
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>            Reporter: Chun Chang
>            Assignee: Daniel Barclay (Drill)
>            Priority: Critical
>             Fix For: 0.8.0
>
>
> It appears postgres returns null for the following comparison:
> {code}
> foodmart=# select null=1;
>  ?column?
> ----------
> (1 row)
> foodmart=# select null <> 1;
>  ?column?
> ----------
> (1 row)
> foodmart=# select null;
>  ?column?
> ----------
> (1 row)
> {code}
> Drill gives sqlValidatorException:
> {code}
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select null=1 from sys.drillbits;
> Query failed: SqlValidatorException: Cannot apply '=' to arguments of type '<NULL>
= <INTEGER>'. Supported form(s): '<COMPARABLE_TYPE> = <COMPARABLE_TYPE>'
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message