Skip to content

Fix currentDatabase function cannot be used in ON CLUSTER ddl query. - #14211

Merged
abyss7 merged 5 commits into
ClickHouse:masterfrom
zhang2014:fix/currentDatabase_with_on_cluster
Sep 9, 2020
Merged

abyss7 merged 5 commits into
ClickHouse:masterfrom
zhang2014:fix/currentDatabase_with_on_cluster

Conversation

@zhang2014

Copy link
Copy Markdown
Contributor

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 currentDatabase() function cannot be used in ON CLUSTER ddl query.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Aug 28, 2020
@zhang2014 zhang2014 changed the title Eval currentDatabase in AddDefaultDatabaseVisitor Fix currentDatabase function cannot be used in ON CLUSTER ddl query. Aug 28, 2020
@filimonov

Copy link
Copy Markdown
Contributor

Resolves #6104?

@abyss7 abyss7 self-assigned this Aug 31, 2020
@abyss7

abyss7 commented Aug 31, 2020

Copy link
Copy Markdown
Contributor

You have a compilation error:

/ClickHouse/src/Interpreters/DDLWorker.cpp:1461:56: error: use of undeclared identifier 'current_database'

@abyss7
abyss7 merged commit 3d1d64e into ClickHouse:master Sep 9, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 9, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 9, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 9, 2020
robot-clickhouse pushed a commit that referenced this pull request Sep 9, 2020
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