You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Yoon-Min Nam (Jira)" <ji...@apache.org> on 2022/09/02 17:37:00 UTC
[jira] [Created] (CALCITE-5261) UNION-ALL inside of the CURSUR throws an exception while validating the query
Yoon-Min Nam created CALCITE-5261:
-------------------------------------
Summary: UNION-ALL inside of the CURSUR throws an exception while validating the query
Key: CALCITE-5261
URL: https://issues.apache.org/jira/browse/CALCITE-5261
Project: Calcite
Issue Type: Bug
Reporter: Yoon-Min Nam
A problematic query uses the table used in the CSV tutorial:
select name from table(dedup(cursor(select name from depts union all select name from depts), 'name'));
```
0: jdbc:calcite:model=src/test/resources/mode> select name from table(dedup(cursor(select name from depts union all select name from depts), 'name'));
Error: Error while executing SQL "select name from table(dedup(cursor(select name from depts union all select name from depts), 'name'))": org.apache.calcite.sql.SqlBasicCall cannot be cast to org.apache.calcite.sql.SqlSelect (state=,code=0)
0: jdbc:calcite:model=src/test/resources/mode>
```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)