Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfault with wrong aggregation in lambdas #16082

Merged
merged 1 commit into from Oct 18, 2020

Conversation

CurtizJ
Copy link
Member

@CurtizJ CurtizJ commented Oct 16, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix segfault in some cases of wrong aggregation in lambdas.

Detailed description / Documentation draft:
Fixes #15981.

Looks like it's the best way to throw exception in case of expression like this arrayMap(x -> x * sum(x), range(10)), because it's hard to determine it in TreeRewrirwer.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Oct 16, 2020
@CurtizJ CurtizJ changed the title fix segfault with wrong aggregation in lambdas Fix segfault with wrong aggregation in lambdas Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yet another fuzzed segfault.
3 participants