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

Add protobuf output format #4005

Merged

Conversation

vitlibar
Copy link
Member

@vitlibar vitlibar commented Jan 8, 2019

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

This change adds support for a new output format "Protobuf". Example of usage:

SELECT * FROM table FORMAT Protobuf SETTINGS schema='myproto:Message';

@vitlibar vitlibar force-pushed the add-protobuf-output-format branch 2 times, most recently from 21d57a6 to 0d61fff Compare January 22, 2019 00:21
});
factory.registerInputFormat(
"CapnProto",
[](ReadBuffer & buf, const Block & sample, const Context & context, size_t max_block_size, const FormatSettings & settings) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это clang-format так отформатировал

Vitaly Baranov added 2 commits January 23, 2019 22:19
This fixes syntax error when executing 'SELECT ... FORMAT ... SETTINGS format_schema=...'
@vitlibar vitlibar force-pushed the add-protobuf-output-format branch 2 times, most recently from d227cdf to a2ece7c Compare January 23, 2019 20:06
@vitlibar vitlibar force-pushed the add-protobuf-output-format branch from a2ece7c to 49f3c4a Compare January 24, 2019 14:33
@vitlibar vitlibar force-pushed the add-protobuf-output-format branch from 49f3c4a to 2e383bf Compare January 24, 2019 14:55
@alexey-milovidov alexey-milovidov merged commit f96b8e4 into ClickHouse:master Jan 24, 2019
alexey-milovidov added a commit that referenced this pull request Jan 24, 2019
alexey-milovidov added a commit that referenced this pull request Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants