-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Versatile StorageJoin #3728
Versatile StorageJoin #3728
Conversation
2cf86d5
to
27b1b95
Compare
This commit does the following: 1. StorageJoin with simple keys now supports reading 2. StorageJoin can be created with Join settings applied. Syntax is similar to MergeTree and Kafka 3. Left Any StorageJoin with one simple key can be used as a dictionary-like structure by function joinGet. Examples are listed in the related test file.
const Context & context; | ||
}; | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In new convention, you just write all implementation in joinGet.cpp
void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result, size_t input_rows_count) override; | ||
|
||
private: | ||
bool isVariadic() const override { return true; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it isn't.
+ ", expected a const string.", | ||
ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT}; | ||
|
||
auto table = context.getTable("", join_name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we support only current database?
This commit does the following:
StorageJoin with simple keys now supports reading, somehow related to allow reading from a SET storage #1656
StorageJoin can be created with Join settings applied. Syntax is
similar to MergeTree and Kafka
Left Any StorageJoin with one simple key can be used as a
dictionary-like structure by function joinGet.
Examples are listed in the related test file.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en