You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Volodymyr Vysotskyi (JIRA)" <ji...@apache.org> on 2019/03/03 13:04:00 UTC
[jira] [Resolved] (DRILL-4395) equi-inner join of two tables in
Postgres returns null one of the projected columns
[ https://issues.apache.org/jira/browse/DRILL-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volodymyr Vysotskyi resolved DRILL-4395.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.16.0
Fixed in DRILL-6734
> equi-inner join of two tables in Postgres returns null one of the projected columns
> -----------------------------------------------------------------------------------
>
> Key: DRILL-4395
> URL: https://issues.apache.org/jira/browse/DRILL-4395
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - JDBC
> Affects Versions: 1.5.0
> Reporter: N Campbell
> Priority: Major
> Fix For: 1.16.0
>
>
> This query should return 1,2,3,4 in both columns but returns null in the second column. Both tables are in a Postgres 9.5 server mapped under Drill
> select tint.rnum, tbint.rnum from postgres.public.tint , postgres.public.tbint where tint.cint = tbint.cbint
> create table TINT ( RNUM integer not null , CINT integer ) ;
> insert into TINT(RNUM, CINT) values ( 0, NULL);
> insert into TINT(RNUM, CINT) values ( 1, -1);
> insert into TINT(RNUM, CINT) values ( 2, 0);
> insert into TINT(RNUM, CINT) values ( 3, 1);
> insert into TINT(RNUM, CINT) values ( 4, 10);
> create table TBINT ( RNUM integer not null , CBINT bigint ) ;
> insert into TBINT(RNUM, CBINT) values ( 0, NULL);
> insert into TBINT(RNUM, CBINT) values ( 1, -1);
> insert into TBINT(RNUM, CBINT) values ( 2, 0);
> insert into TBINT(RNUM, CBINT) values ( 3, 1);
> insert into TBINT(RNUM, CBINT) values ( 4, 10);
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)