[
https://issues.apache.org/jira/browse/CALCITE-7699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7699.
----------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/8737f2e5ec206030afdd9841d82280a452ff32a6]
Thank you for the review [~xuzifu666]
> ARRAY_INSERT fails in validation when first argument is not an array
> constructor
> --------------------------------------------------------------------------------
>
> Key: CALCITE-7699
> URL: https://issues.apache.org/jira/browse/CALCITE-7699
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Environment: Related to CALCITE-6743
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> {code:sql}
> select array_insert(cast(array(1, 2, 3) as integer array), 3, cast(4 as
> double));{code}
> fails with
> {code}
> SqlValidatorException: Cast function cannot convert value of type
> INTEGER NOT NULL ARRAY NOT NULL to type DOUBLE
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)