Skip to content

Fix function neighbor for LowCardinality argument.#19617

Merged
alexey-milovidov merged 3 commits intomasterfrom
fix-lc-neighbour
Jan 28, 2021
Merged

Fix function neighbor for LowCardinality argument.#19617
alexey-milovidov merged 3 commits intomasterfrom
fix-lc-neighbour

Conversation

@KochetovNicolai
Copy link
Copy Markdown
Member

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 wrong result of function neighbor for LowCardinality argument. Fixes #10333

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Jan 26, 2021

bool useDefaultImplementationForConstants() const override { return false; }

bool useDefaultImplementationForLowCardinalityColumns() const override { return false; }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point? Why it was working wrong?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The optimization happened. Function was executed over dictionary

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment?

@alexey-milovidov alexey-milovidov self-assigned this Jan 26, 2021
@alexey-milovidov alexey-milovidov merged commit fa48545 into master Jan 28, 2021
@alexey-milovidov alexey-milovidov deleted the fix-lc-neighbour branch January 28, 2021 00:06
alexey-milovidov added a commit that referenced this pull request Feb 1, 2021
Backport #19617 to 21.1: Fix function neighbor for LowCardinality argument.
vitlibar pushed a commit that referenced this pull request Feb 1, 2021
Backport #19617 to 20.12: Fix function neighbor for LowCardinality argument.
vitlibar pushed a commit that referenced this pull request Feb 1, 2021
Backport #19617 to 20.11: Fix function neighbor for LowCardinality argument.
alexey-milovidov added a commit that referenced this pull request Feb 19, 2021
Backport #19617 to 20.8: Fix function neighbor for LowCardinality argument.
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.

neighbor + LowCardinality = wrong result

3 participants