You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/11/17 19:19:11 UTC
[jira] [Created] (DRILL-4105) Constant Folding and coalesce
function with 3 parameters gives cannot plan exception
Rahul Challapalli created DRILL-4105:
----------------------------------------
Summary: Constant Folding and coalesce function with 3 parameters gives cannot plan exception
Key: DRILL-4105
URL: https://issues.apache.org/jira/browse/DRILL-4105
Project: Apache Drill
Issue Type: Bug
Components: Query Planning & Optimization
Affects Versions: 1.3.0
Reporter: Rahul Challapalli
git.commit.id.abbrev=447f8ba
The below query results in a cannot plan exception
{code}
select * from cp.`tpch/lineitem.parquet` d1, cp.`tpch/lineitem.parquet` d2 where d1.l_comment = coalesce(d2.l_comment, 'asdf', d2.l_comment);
Error: UNSUPPORTED_OPERATION ERROR: This query cannot be planned possibly due to either a cartesian join or an inequality join
[Error Id: d0b75ac0-6d39-4fb0-bc48-13e52fa4abf2 on qa-node190.qa.lab:31010] (state=,code=0)
{code}
However the query executes fine if I disabled constant folding.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)