Skip to content
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

Merged
merged 1 commit into from
Dec 10, 2018
Merged

Versatile StorageJoin #3728

merged 1 commit into from
Dec 10, 2018

Conversation

amosbird
Copy link
Collaborator

@amosbird amosbird commented Dec 2, 2018

This commit does the following:

  1. StorageJoin with simple keys now supports reading, somehow related to allow reading from a SET storage #1656

  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.

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

@amosbird amosbird force-pushed the join branch 2 times, most recently from 2cf86d5 to 27b1b95 Compare December 2, 2018 08:48
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;
};

}
Copy link
Member

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; }
Copy link
Member

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);
Copy link
Member

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?

@alexey-milovidov alexey-milovidov merged commit 7af621f into ClickHouse:master Dec 10, 2018
@akuzm akuzm added the pr-feature Pull request with new product feature label Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature Pull request with new product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants