Skip to content

Fix nullable prewhere type#11608

Merged
alexey-milovidov merged 3 commits intomasterfrom
fix-nullable-prewhere-type
Jun 13, 2020
Merged

Fix nullable prewhere type#11608
alexey-milovidov merged 3 commits intomasterfrom
fix-nullable-prewhere-type

Conversation

@KochetovNicolai
Copy link
Copy Markdown
Member

@KochetovNicolai KochetovNicolai commented Jun 11, 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 rare crash caused by using Nullable column in prewhere condition. (Probably it is connected with #11572 somehow).

@alesapin thanks for the test

@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 11, 2020
@alexey-milovidov alexey-milovidov merged commit f53da4d into master Jun 13, 2020
@alexey-milovidov alexey-milovidov deleted the fix-nullable-prewhere-type branch June 13, 2020 17:29
@alexey-milovidov alexey-milovidov self-assigned this Jun 13, 2020
if (prewhere->remove_prewhere_column)
result.columns.erase(result.columns.begin() + prewhere_column_pos);
else
result.columns[prewhere_column_pos] = DataTypeUInt8().createColumnConst(result.num_rows, 1u)->convertToFullColumnIfConst();
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.

Ok.

Just in case I want to make sure that we have run the search for
DataTypeUInt8().createColumn in all project files...

vitlibar pushed a commit that referenced this pull request Jun 19, 2020
Fix nullable prewhere type

(cherry picked from commit f53da4d)
vitlibar pushed a commit that referenced this pull request Jun 20, 2020
Fix nullable prewhere type

(cherry picked from commit f53da4d)
vitlibar pushed a commit that referenced this pull request Jun 20, 2020
Fix nullable prewhere type

(cherry picked from commit f53da4d)
vitlibar pushed a commit that referenced this pull request Jun 22, 2020
KochetovNicolai pushed a commit that referenced this pull request Jun 23, 2020
Fix nullable prewhere type

(cherry picked from commit f53da4d)
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.

4 participants