Skip to content

ARRAY JOIN allows non-existing columns (UB) #9233

Closed

Description

@den-crane

Y -- does not exists, but ARRAY JOIN does not check it.

SELECT *
FROM
(
    SELECT
        [1, 2, 3] AS x,
        [4, 5, 6] AS y
)
ARRAY JOIN
    x,
    Y

┌─x─┬─y───────┐
│ 1 │ [4,5,6] │
│ 2 │ [4,5,6] │
│ 3 │ [4,5,6] │
└───┴─────────┘

Activity

  1. added
    bug
    unexpected behaviour
    and removed
    bug
    on Feb 19, 2020
  2. alexey-milovidov commented on Oct 19, 2022

    @alexey-milovidov
    Member
  3. added a commit that references this issue on Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    minorunexpected behaviourusability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions