You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/05/13 01:21:03 UTC
[jira] [Commented] (DRILL-2433) Implicit cast between date and
timestamp is missing in joins
[ https://issues.apache.org/jira/browse/DRILL-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14540990#comment-14540990 ]
Victoria Markman commented on DRILL-2433:
-----------------------------------------
Verified fixed in 1.0.0
#Tue May 12 12:29:50 EDT 2015
git.commit.id.abbrev=d10769f
Tests are checked in under: Functional/Passing/joins/implicit_cast
> Implicit cast between date and timestamp is missing in joins
> ------------------------------------------------------------
>
> Key: DRILL-2433
> URL: https://issues.apache.org/jira/browse/DRILL-2433
> Project: Apache Drill
> Issue Type: Improvement
> Components: Execution - Data Types
> Reporter: Victoria Markman
> Assignee: Mehant Baid
> Fix For: 1.0.0
>
> Attachments: DRILL-2433.patch
>
>
> {code}
> 0: jdbc:drill:schema=dfs> select count(*) from cast_tbl_1 a, cast_tbl_2 b where a.c_timestamp = b.c_date;
> Query failed: RemoteRpcException: Failure while running fragment., Failure finding function that runtime code generation expected. Signature: compare_to_nulls_high( DATE:OPTIONAL, TIMESTAMP:OPTIONAL ) returns INT:REQUIRED [ e17b546e-81ec-49f0-ac91-f5714f570971 on atsqa4-134.qa.lab:31010 ]
> [ e17b546e-81ec-49f0-ac91-f5714f570971 on atsqa4-134.qa.lab:31010 ]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> This is inconsistent with our UNION ALL implementation.
> {code}
> 0: jdbc:drill:schema=dfs> select c_date from cast_tbl_1 union all select c_timestamp from cast_tbl_2 order by c_date limit 5;
> +------------+
> | c_date |
> +------------+
> | 1960-01-03 00:00:00.0 |
> | 1960-01-03 00:00:00.0 |
> | 1960-01-05 00:00:00.0 |
> | 1960-01-05 00:00:00.0 |
> | 1960-01-08 00:00:00.0 |
> +------------+
> 5 rows selected (0.276 seconds)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)