[
https://issues.apache.org/jira/browse/CALCITE-6508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6508.
----------------------------------
Fix Version/s: 1.38.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/5c0127cdf3516094961e0cb0069e700dbed3af7d
Thank you for the contribution [~ian.bertolacci]
Thank you for the review [~caicancai]
> Parse error when using scalar sub-query as operand to Array constructor
> function
> --------------------------------------------------------------------------------
>
> Key: CALCITE-6508
> URL: https://issues.apache.org/jira/browse/CALCITE-6508
> Project: Calcite
> Issue Type: Bug
> Reporter: Ian Bertolacci
> Assignee: Ian Bertolacci
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> Using a scalar subquery in the {{`ARRAY[ ... ]`}} function throws "parse
> failed: Query expression encountered in illegal context"
> (Calcite version 1.36)
> For example:
> {code:sql}
> select ARRAY[ (select 1) ]
> select ARRAY[ (select max(x) from table) ]
> {code}
> Is this something that can be configured or easily altered?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)