You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2015/10/15 06:48:05 UTC
[jira] [Updated] (TAJO-363) Columns in subquery schema cannot be
resolved
[ https://issues.apache.org/jira/browse/TAJO-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyunsik Choi updated TAJO-363:
------------------------------
Fix Version/s: 0.12.0
> Columns in subquery schema cannot be resolved
> ---------------------------------------------
>
> Key: TAJO-363
> URL: https://issues.apache.org/jira/browse/TAJO-363
> Project: Tajo
> Issue Type: Bug
> Components: Planner/Optimizer, SQL Parser
> Reporter: Hyunsik Choi
> Assignee: Hyunsik Choi
> Fix For: 0.12.0
>
>
> 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".
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)