You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Parth Chandra (JIRA)" <ji...@apache.org> on 2015/03/25 00:05:54 UTC
[jira] [Updated] (DRILL-2546) Implicit Cast : Joining 2 tables on
columns which are float and double should succeed when the values are equal
[ https://issues.apache.org/jira/browse/DRILL-2546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Parth Chandra updated DRILL-2546:
---------------------------------
Assignee: Mehant Baid (was: Daniel Barclay (Drill))
> Implicit Cast : Joining 2 tables on columns which are float and double should succeed when the values are equal
> ---------------------------------------------------------------------------------------------------------------
>
> Key: DRILL-2546
> URL: https://issues.apache.org/jira/browse/DRILL-2546
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Data Types, Execution - Relational Operators
> Reporter: Rahul Challapalli
> Assignee: Mehant Baid
>
> git.commit.id.abbrev=f1b59ed
> I attached 2 files which contains the same values.
> The below query is not doing an implicit cast between double and float
> {code}
> select count(*) from dfs.`cross-sources`.`fewtypes_null.parquet` p
> . . . . . . . . . . . . . . > inner join dfs.`cross-sources`.`fewtypes_null.json` o
> . . . . . . . . . . . . . . > on p.float_col=o.float_col;
> +------------+
> | EXPR$0 |
> +------------+
> | 1 |
> +------------+
> 1 row selected (0.148 seconds)
> {code}
> However if we do an explicit cast, we get the right result
> {code}
> select count(*) from dfs.`cross-sources`.`fewtypes_null.parquet` p
> . . . . . . . . . . . . . . > inner join dfs.`cross-sources`.`fewtypes_null.json` o
> . . . . . . . . . . . . . . > on p.float_col=cast(o.float_col as float);
> +------------+
> | EXPR$0 |
> +------------+
> | 17 |
> +------------+
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)