Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
See the below SQL statement. This statement contains a subquery with schema binding. Currently, LogicalPlanner cannot recognize subquery schema. So, the below statement causes "no such a column name exception".
select c_count, count(*) as custdist from ( select c_custkey, count(o_orderkey) from customer left outer join orders on c_custkey = o_custkey and o_comment not like '%special%requests%' group by c_custkey ) as c_orders (c_custkey, c_count) group by c_count order by custdist desc, c_count desc; ERROR: no such a column name c_count
Attachments
Issue Links
- duplicates
-
TAJO-1791 Cannot recognize column name from FROM subquery
- Resolved