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 selecting with extremes from LowCardinality(UUID) #27918

Conversation

vitlibar
Copy link
Member

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

Changelog category:

  • Bug Fix

Changelog entry:
Fix selecting with extremes from a column of the type LowCardinality(UUID)

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Aug 20, 2021
@@ -304,7 +304,7 @@ size_t ColumnUnique<ColumnType>::uniqueInsert(const Field & x)
if (x.getType() == Field::Types::Null)
return getNullValueIndex();

if (isNumeric())
if (valuesHaveFixedSize())
return uniqueInsertData(&x.reinterpret<char>(), size_of_value_if_fixed);

auto & val = x.get<String>();
Copy link
Member Author

@vitlibar vitlibar Aug 20, 2021

Choose a reason for hiding this comment

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

Without my fix this line produced a logical error:

<Fatal> : Logical error: 'Invalid Field get from type UUID to type String'.

@alexey-milovidov alexey-milovidov merged commit adc63ce into ClickHouse:master Aug 21, 2021
@alexey-milovidov alexey-milovidov self-assigned this Aug 21, 2021
robot-clickhouse pushed a commit that referenced this pull request Aug 21, 2021
robot-clickhouse pushed a commit that referenced this pull request Aug 21, 2021
robot-clickhouse pushed a commit that referenced this pull request Aug 21, 2021
robot-clickhouse pushed a commit that referenced this pull request Aug 21, 2021
robot-clickhouse pushed a commit that referenced this pull request Aug 21, 2021
alexey-milovidov added a commit that referenced this pull request Aug 21, 2021
Backport #27918 to 21.9: Fix selecting with extremes from LowCardinality(UUID)
vitlibar pushed a commit that referenced this pull request Aug 23, 2021
vitlibar pushed a commit that referenced this pull request Aug 23, 2021
vitlibar pushed a commit that referenced this pull request Aug 23, 2021
vitlibar pushed a commit that referenced this pull request Aug 23, 2021
vitlibar pushed a commit that referenced this pull request Aug 24, 2021
Backport #27918 to 21.8: Fix selecting with extremes from LowCardinality(UUID)
vitlibar pushed a commit that referenced this pull request Aug 24, 2021
Backport #27918 to 21.7: Fix selecting with extremes from LowCardinality(UUID)
vitlibar pushed a commit that referenced this pull request Aug 24, 2021
Backport #27918 to 21.6: Fix selecting with extremes from LowCardinality(UUID)
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.

3 participants