drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Phillips (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1447) Hash join implicit cast fails
Date Wed, 24 Sep 2014 01:39:34 GMT

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

Steven Phillips updated DRILL-1447:
-----------------------------------
    Attachment: nation_int.parquet
                nation_bigint.parquet

> Hash join implicit cast fails
> -----------------------------
>
>                 Key: DRILL-1447
>                 URL: https://issues.apache.org/jira/browse/DRILL-1447
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Steven Phillips
>         Attachments: nation_bigint.parquet, nation_int.parquet
>
>
> Join on two columns, where one is int, and the other is bigint, does not return any results
when using hash join. Disabling hashjoin gives the expected result.
> In this example, nation_int and nation_big int each contain a single column, but one
has int, and the other bigint:
> 0: jdbc:drill:> select i.n_nationkey as a, b.n_nationkey as b from nation_int i, nation_bigint
b where i.n_nationkey = b.n_nationkey limit 5;
> +------------+------------+
> |     a      |     b      |
> +------------+------------+
> +------------+------------+
> No rows selected (0.891 seconds)
> 0: jdbc:drill:> alter session set `planner.enable_hashjoin` = false;
> +------------+------------+
> |     ok     |  summary   |
> +------------+------------+
> | true       | planner.enable_hashjoin updated. |
> +------------+------------+
> 1 row selected (0.04 seconds)
> 0: jdbc:drill:> select i.n_nationkey as a, b.n_nationkey as b from nation_int i, nation_bigint
b where i.n_nationkey = b.n_nationkey limit 5;
> +------------+------------+
> |     a      |     b      |
> +------------+------------+
> | 0          | 0          |
> | 1          | 1          |
> | 2          | 2          |
> | 3          | 3          |
> | 4          | 4          |
> +------------+------------+
> 5 rows selected (1.275 seconds)



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

Mime
View raw message