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)