[
https://issues.apache.org/jira/browse/CALCITE-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde resolved CALCITE-662.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0-incubating
Fixed in
http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/7d522dc9.
> Query validation fails when an ORDER BY clause is used with WITH CLAUSE
> -----------------------------------------------------------------------
>
> Key: CALCITE-662
> URL: https://issues.apache.org/jira/browse/CALCITE-662
> Project: Calcite
> Issue Type: Bug
> Reporter: Sean Hsuan-Yi Chu
> Assignee: Julian Hyde
> Fix For: 1.2.0-incubating
>
>
> This query fails in validation:
> {code:sql}
> WITH
> x
> AS (SELECT deptno a
> FROM emp)
> (SELECT x.a
> FROM x
> ORDER BY x.a)
> {code}
> while this one below, basically the same except for the "ORDER BY being
> gone", succeeds:
> {code:sql}
> WITH
> x
> AS (SELECT deptno a
> FROM emp)
> (SELECT x.a
> FROM x)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)