Skip to content

Cherry pick #13681 to 20.4: Do not optimize any(arrayJoin()) -> arrayJoin() under optimize_move_functions_out_of_any#13694

Closed
robot-clickhouse wants to merge 2 commits intobackport/20.4/13681from
cherrypick/20.4/e1a25053dde54d59efa0dfade1eadb0c34a0ad4c
Closed

Cherry pick #13681 to 20.4: Do not optimize any(arrayJoin()) -> arrayJoin() under optimize_move_functions_out_of_any#13694
robot-clickhouse wants to merge 2 commits intobackport/20.4/13681from
cherrypick/20.4/e1a25053dde54d59efa0dfade1eadb0c34a0ad4c

Conversation

@robot-clickhouse
Copy link
Copy Markdown
Member

Original pull-request #13681

This pull-request is a first step of an automated backporting.
It contains changes like after calling a local command git cherry-pick.
If you intend to continue backporting this changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.
Also this pull-request will be merged automatically as it reaches the mergeable state, but you always can merge it manually.

azat and others added 2 commits August 13, 2020 22:17
…unctions_out_of_any

Otherwise the following query will be optimized incorrectly:

    SELECT
        *,
        any(arrayJoin([[], []]))
    FROM numbers(1)
    GROUP BY number

And the result will be:

    ┌─number─┬─arrayJoin(array(array(), array()))─┐
    │      0 │ []                                 │
    │      0 │ []                                 │
    └────────┴────────────────────────────────────┘

While should be:

    ┌─number─┬─any(arrayJoin(array(array(), array())))─┐
    │      0 │ []                                      │
    └────────┴─────────────────────────────────────────┘
…y-arrayJoin

Do not optimize any(arrayJoin()) -> arrayJoin() under optimize_move_functions_out_of_any
@robot-clickhouse robot-clickhouse added do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! labels Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants