Skip to content

Fix enum = Int8 in KeyCondition#18214

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
amosbird:fix-15651
Dec 20, 2020
Merged

Fix enum = Int8 in KeyCondition#18214
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
amosbird:fix-15651

Conversation

@amosbird
Copy link
Copy Markdown
Collaborator

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 key comparison between Enum and Int types. This fixes #17989

Detailed description / Documentation draft:

.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Dec 18, 2020
@alexey-milovidov alexey-milovidov self-assigned this Dec 20, 2020
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

Ok.

Now UInt8 is also a supertype for UInt8 and Enum8?

@alexey-milovidov alexey-milovidov merged commit 252fc73 into ClickHouse:master Dec 20, 2020
@amosbird
Copy link
Copy Markdown
Collaborator Author

Ok.

Now UInt8 is also a supertype for UInt8 and Enum8?

Enum8 is treated as Int8 so the super type would be Int16

alexey-milovidov added a commit that referenced this pull request Dec 23, 2020
Backport #18214 to 20.12: Fix enum = Int8 in KeyCondition
alexey-milovidov added a commit that referenced this pull request Dec 23, 2020
Backport #18214 to 20.11: Fix enum = Int8 in KeyCondition
alexey-milovidov added a commit that referenced this pull request Dec 23, 2020
Backport #18214 to 20.10: Fix enum = Int8 in KeyCondition
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.

There is no supertype when filtering by an Enum which is included in primary key

3 participants