Skip to content

ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name#16149

Merged
abyss7 merged 9 commits intoClickHouse:masterfrom
abyss7:ast-identifier-name
Oct 24, 2020
Merged

ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name#16149
abyss7 merged 9 commits intoClickHouse:masterfrom
abyss7:ast-identifier-name

Conversation

@abyss7
Copy link
Copy Markdown
Contributor

@abyss7 abyss7 commented Oct 19, 2020

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

Changelog category (leave one):

  • Other

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Use only |name_parts| as primary name source and auto-generate full name

@robot-clickhouse robot-clickhouse added the pr-other Pull request with changes not fitting to other categories label Oct 19, 2020
@abyss7 abyss7 changed the title Improve internal representation of ASTIdentifier name ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name Oct 19, 2020
@abyss7
Copy link
Copy Markdown
Contributor Author

abyss7 commented Oct 23, 2020

Yandex third-party fixed

@tavplubix tavplubix self-assigned this Oct 23, 2020
Comment on lines +178 to +179
std::vector<String> parts = {column_name};

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.

Suggested change
std::vector<String> parts = {column_name};
std::vector<String> parts;

Comment on lines +181 to +182
if (!table_name.empty()) parts.insert(parts.begin(), table_name);

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.

Suggested change
if (!table_name.empty()) parts.insert(parts.begin(), table_name);
if (!table_name.empty())
parts.push_back(std::move(table_name));
parts.push_back(column_name);

@abyss7 abyss7 merged commit 1d170f5 into ClickHouse:master Oct 24, 2020
@abyss7 abyss7 deleted the ast-identifier-name branch October 24, 2020 18:46
traceon added a commit to traceon/ClickHouse that referenced this pull request Oct 26, 2020
* master: (285 commits)
  Update uuid-functions.md
  Revert "Revert "Optionally upload clickhouse binary in fast test""
  DOCSUP-2806: Add meta header in RU (ClickHouse#15801)
  DOCSUP-3200: Edit and translate to Russian (ClickHouse#16204)
  Update cloud.md
  Fix trash
  Fixing another issue in LDAP tests.
  Fixing procedure of getting log file size in LDAP tests. Increasing default timeouts.
  Remove message broker pool from context
  Fix async Distributed INSERT w/ prefer_localhost_replica=0 and internal_replication
  UUID safe cast functions added
  Links fixed.
  Text updated ant translated to Russian
  Improve performance of FunctionsLogical a little by adding "restrict"
  Check style
  Remove excessive exclamation marks
  Fix performance test "functions logical" after move to clang
  Remove flaky LIVE VIEW test
  ASTTableIdentifier Part #1: improve internal representation of ASTIdentifier name (ClickHouse#16149)
  Update ThreadStatusExt.cpp
  ...

# Conflicts:
#	programs/local/LocalServer.cpp
#	src/Server/HTTPHandler.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-other Pull request with changes not fitting to other categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants