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 2015/10/16 09:22:05 UTC
[jira] [Commented] (DRILL-3943) CannotPlanException caused by
ExpressionReductionRule
[ https://issues.apache.org/jira/browse/DRILL-3943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960300#comment-14960300 ]
ASF GitHub Bot commented on DRILL-3943:
---------------------------------------
GitHub user hsuanyi opened a pull request:
https://github.com/apache/drill/pull/206
DRILL-3943: In constant folding, when the the data type of the return…
… value is TimeStamp, generate TimeStamp Literal
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hsuanyi/incubator-drill DRILL-3943
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/206.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 #206
----
commit 74267c226cd447c98b36df8ef44f4121ef581c90
Author: Hsuan-Yi Chu <hs...@usc.edu>
Date: 2015-10-15T03:55:34Z
DRILL-3943: In constant folding, when the the data type of the return value is TimeStamp, generate TimeStamp Literal
----
> CannotPlanException caused by ExpressionReductionRule
> -----------------------------------------------------
>
> Key: DRILL-3943
> URL: https://issues.apache.org/jira/browse/DRILL-3943
> Project: Apache Drill
> Issue Type: Bug
> Components: Query Planning & Optimization
> Reporter: Sean Hsuan-Yi Chu
> Assignee: Sean Hsuan-Yi Chu
> Fix For: 1.3.0
>
>
> For a query such as:
> {code}
> SELECT count(DISTINCT employee_id) as col1,
> count((to_number(date_diff(now(), cast(birth_date AS date)),'####'))) as col2
> FROM cp.`employee.json`
> {code}
> cannot plan exception will be thrown because ExpressionReductionRule does not properly simply the call "now()".
> This issue is similar to DRILL-2808, but that one focuses on error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)