[
https://issues.apache.org/jira/browse/DRILL-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003863#comment-14003863
]
Aman Sinha commented on DRILL-789:
----------------------------------
The wrong result seems to be caused by distribution on varchar column. If I
disable exchanges (set planner.disable_exchanges to True) on the cluster, we
get right results. Also, joining on voter_id = student_id columns returns
right results.
BTW, the bug 787 with inner joins also has the same underlying cause.
> Left outer join returns "null" values for columns from the right table
> ----------------------------------------------------------------------
>
> Key: DRILL-789
> URL: https://issues.apache.org/jira/browse/DRILL-789
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Reporter: Krystal
>
> git.commit.id.abbrev=5d7e3d3
> 0: jdbc:drill:schema=dfs> select voter.name voter_name, voter.registration
> registration, student.name student_name, student.gpa gpa from voter left
> outer join student on (student.name = voter.name) where voter.age < 30;
> +------------+--------------+--------------+------------+
> | voter_name | registration | student_name | gpa |
> +------------+--------------+--------------+------------+
> | [B@6ca2652 | [B@4199d4f9 | null | null |
> | [B@5a6d4914 | [B@3cd8ee6d | null | null |
> | [B@460d5550 | [B@155c1b1e | null | null |
> | [B@51f85986 | [B@7bd9675 | null | null |
> | [B@2fe0df4b | [B@5463cd7b | null | null |
> | [B@64477185 | [B@e6e0632 | null | null |
--
This message was sent by Atlassian JIRA
(v6.2#6252)