Skip to content

Fix bug with wrong type in Merge table and PREWHERE#44716

Merged
vdimir merged 2 commits intomasterfrom
vdimir/merge_engine_nullable
Jan 9, 2023
Merged

Fix bug with wrong type in Merge table and PREWHERE#44716
vdimir merged 2 commits intomasterfrom
vdimir/merge_engine_nullable

Conversation

@vdimir
Copy link
Copy Markdown
Member

@vdimir vdimir commented Dec 29, 2022

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix bug with wrong type in Merge table and PREWHERE, close #43324

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-bugfix Pull request with bugfix, not backported by default label Dec 29, 2022
@SmitaRKulkarni SmitaRKulkarni self-assigned this Dec 30, 2022
Copy link
Copy Markdown
Member

@SmitaRKulkarni SmitaRKulkarni left a comment

Choose a reason for hiding this comment

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

Rest all LGTM

if (!can_move)
return false;

if (!getInMemoryMetadataPtr())
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.

Hi @vdimir. Is this at all possible? setInMemoryMetadata in StorageMerge should be enough, no?

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.

@azat yes, this check is excessive

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.

I've removed it here - #46454, it also addresses few other issues with PREWHERE for Merge, and this patch makes it possible to use PREWHERE for columns which types is the same, instead of globally disable PREWHERE

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.

AST Fuzzer Logical error: 'Unknown numeric column x of type: DB::ColumnNullable'

4 participants