Skip to content

ASTLiteral clone only value - #36542

Merged
yakov-olkhovskiy merged 5 commits into
ClickHouse:masterfrom
vdimir:literal_drop_const_issue36279
May 5, 2022
Merged

yakov-olkhovskiy merged 5 commits into
ClickHouse:masterfrom
vdimir:literal_drop_const_issue36279

Conversation

@vdimir

@vdimir vdimir commented Apr 22, 2022 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

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

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

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

@vdimir vdimir changed the title ASTLiteral clone only value [WIP] ASTLiteral clone only value Apr 22, 2022
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 22, 2022
@yakov-olkhovskiy yakov-olkhovskiy self-assigned this Apr 25, 2022
@vdimir
vdimir force-pushed the literal_drop_const_issue36279 branch from d54a95d to 5d2e4bb Compare April 28, 2022 17:10
@vdimir

vdimir commented Apr 29, 2022

Copy link
Copy Markdown
Member Author

Tests are passed, so it seems it's ok when we clone literal without unique_column_name. This field is used for internal purposes and actually should be removed from ASTLiteral, but while we have it we can just change clone implementation.

I'm going to add test when it resolves some issues connected with default clone implementation.

@vdimir vdimir added pr-bugfix Pull request with bugfix, not backported by default and removed pr-not-for-changelog This PR should not be mentioned in the changelog labels Apr 29, 2022
@vdimir vdimir changed the title [WIP] ASTLiteral clone only value ASTLiteral clone only value Apr 29, 2022
@vdimir
vdimir marked this pull request as ready for review April 29, 2022 10:55
@vdimir
vdimir requested a review from yakov-olkhovskiy April 29, 2022 10:55
@yakov-olkhovskiy yakov-olkhovskiy added the can be tested Allows running workflows for external contributors label May 3, 2022
@vdimir

vdimir commented May 3, 2022 •

Copy link
Copy Markdown
Member Author

Added test failed in CI with error Table default.test_distruted doesn't exist, going to investigate ...

@vdimir
vdimir force-pushed the literal_drop_const_issue36279 branch from f0ab52c to ffb0570 Compare May 3, 2022 11:07
@yakov-olkhovskiy

Copy link
Copy Markdown
Member

@vdimir

vdimir commented May 4, 2022 •

Copy link
Copy Markdown
Member Author

Seems that error table not found was caused by another bug, current table name is not substituted into JOIN subquery. Will set prefer_localhost_replica = 1 to current test as work around and will fix in another PR ttps://github.com//pull/36902

@den-crane

Copy link
Copy Markdown
Contributor

it can solve #36891

@SaltTan

SaltTan commented May 7, 2022

Copy link
Copy Markdown
Contributor

Backport?

@vdimir

vdimir commented May 19, 2022

Copy link
Copy Markdown
Member Author

@SaltTan haven't plan to backport, because issue have workaround SET optimize_move_to_prewhere = 0;

@tavplubix tavplubix added pr-must-backport Pull request should be backported intentionally. Use this label with great care! and removed pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Jun 3, 2022
@filimonov

Copy link
Copy Markdown
Contributor

issue have workaround SET optimize_move_to_prewhere = 0;

It is not an acceptable workaround for most clickhouse users. Too significant performance impact.

vdimir pushed a commit to vdimir/ClickHouse that referenced this pull request Jun 27, 2022
…sue36279

ASTLiteral clone only value

(cherry picked from commit 75fc471)
vdimir pushed a commit to vdimir/ClickHouse that referenced this pull request Jun 27, 2022
…sue36279

ASTLiteral clone only value

(cherry picked from commit 75fc471)
vdimir pushed a commit that referenced this pull request Jun 27, 2022
ASTLiteral clone only value

(cherry picked from commit 75fc471)
vdimir pushed a commit that referenced this pull request Jun 27, 2022
ASTLiteral clone only value

(cherry picked from commit 75fc471)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Argument at index 1 for function ilike must be constant: while executing. (ILLEGAL_COLUMN)

7 participants