Skip to content

Dictionary empty attribute list#27905

Merged
qoega merged 1 commit intoClickHouse:masterfrom
kitaisreal:dictionary-empty-attribute-list
Aug 20, 2021
Merged

Dictionary empty attribute list#27905
qoega merged 1 commit intoClickHouse:masterfrom
kitaisreal:dictionary-empty-attribute-list

Conversation

@kitaisreal
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):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Allow to create dictionaries with empty attributes list.

@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Aug 20, 2021
CREATE DICTIONARY test_dictionary (id UInt64) PRIMARY KEY id LAYOUT(DIRECT()) SOURCE(CLICKHOUSE(TABLE 'test_table'));
SELECT * FROM test_dictionary;
SELECT dictHas('test_dictionary', toUInt64(0));
SELECT dictHas('test_dictionary', toUInt64(1));
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.

Maybe add dictGet with some dummy name. Just to be sure that nothing crashed before attributed validation.

@alesapin alesapin self-assigned this Aug 20, 2021
@qoega qoega merged commit e146afe into ClickHouse:master Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants