Skip to content

Array subquery should only allow one column instead of multi columns #10024

@chenzl25

Description

@chenzl25

What happens?

This sql should throw an error.

select array(select 1,2 union select 3,4)

To Reproduce

select array(select 1,2 union select 3,4)

OS:

aarch64

DuckDB Version:

0.9

DuckDB Client:

duckdb command line

Full Name:

Dylan Chen

Affiliation:

RisingWave

Have you tried this on the latest main branch?

I have tested with a main build

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions