You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/01 00:11:58 UTC
[jira] [Commented] (DRILL-5086) ClassCastException when filter
pushdown is used with a bigint or float column.
[ https://issues.apache.org/jira/browse/DRILL-5086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15710294#comment-15710294 ]
ASF GitHub Bot commented on DRILL-5086:
---------------------------------------
GitHub user amansinha100 opened a pull request:
https://github.com/apache/drill/pull/674
DRILL-5086: Fix conversion of min and max values to appropriate data …
…type.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/amansinha100/incubator-drill DRILL-5086
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/674.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #674
----
commit f2f8d587921a56cfcb5be010b8fb5b4d5f58ea78
Author: Aman Sinha <as...@maprtech.com>
Date: 2016-11-30T23:19:36Z
DRILL-5086: Fix conversion of min and max values to appropriate data type.
----
> ClassCastException when filter pushdown is used with a bigint or float column.
> ------------------------------------------------------------------------------
>
> Key: DRILL-5086
> URL: https://issues.apache.org/jira/browse/DRILL-5086
> Project: Apache Drill
> Issue Type: Bug
> Components: Query Planning & Optimization
> Affects Versions: 1.9.0
> Reporter: Robert Hou
> Assignee: Aman Sinha
> Attachments: 0_0_1.parquet, 0_0_2.parquet, 0_0_3.parquet, 0_0_4.parquet, 0_0_5.parquet, drill.parquet_metadata
>
>
> This query results in a ClassCastException when filter pushdown is used. The bigint column is being compared with an integer value.
> 0: jdbc:drill:zk=10.10.100.186:5181/drill/rho> select count(\*) from orders_parts_metadata where bigint_id < 1100;
> Error: SYSTEM ERROR: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
> To reproduce the problem, put the attached files into a directory. Then create the metadata:
> refresh table metadata dfs.`path_to_directory`;
> For example, if you put the files in /drill/testdata/filter/orders_parts_metadata, then run this sql command
> refresh table metadata dfs.`/drill/testdata/filter/orders_parts_metadata`;
> A similar problem occurs when a float column is being compared with a double value.
> 0: jdbc:drill:zk=10.10.100.186:5181/drill/rho> select count(\*) from orders_parts_metadata where float_id < 1100.0;
> Error: SYSTEM ERROR: ClassCastException
> Also when a timestamp column is being compared with a string.
> 0: jdbc:drill:zk=10.10.100.186:5181/drill/rho> select count(\*) from orders_parts_metadata where timestamp_id < '2016-10-13';
> Error: SYSTEM ERROR: ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)