-
Notifications
You must be signed in to change notification settings - Fork 17
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
grpc: add clickhouse dest #354
Conversation
This Pull Request introduces config grammar changesaxoflow/9aa7142e84e7fe4ae29c65cc922fa2f9835f2516 -> alltilla/grpc-clickhouse --- a/destination
+++ b/destination
+clickhouse(
+ auth(
+ adc(<empty>)
+ alts(
+ <empty>
+ target-service-accounts(
+ <empty>
+ <string>
+ )
+ )
+ insecure(<empty>)
+ tls(
+ <empty>
+ ca-file(<string>)
+ cert-file(<string>)
+ key-file(<string>)
+ )
+ )
+ batch-bytes(<positive-integer>)
+ batch-lines(<nonnegative-integer>)
+ batch-timeout(<positive-integer>)
+ channel-args(
+ <empty>
+ <string> => <number>
+ <string> => <string>
+ )
+ compression(<yesno>)
+ database(<string>)
+ disk-buffer(
+ capacity-bytes(<number>)
+ compaction(<yesno>)
+ dir(<string>)
+ disk-buf-size(<number>)
+ flow-control-window-bytes(<nonnegative-integer>)
+ flow-control-window-size(<nonnegative-integer>)
+ front-cache-size(<nonnegative-integer>)
+ mem-buf-length(<nonnegative-integer>)
+ mem-buf-size(<nonnegative-integer>)
+ prealloc(<yesno>)
+ qout-size(<nonnegative-integer>)
+ reliable(<yesno>)
+ truncate-size-ratio(<nonnegative-float>)
+ )
+ flags(
+ <empty>
+ <string>
+ )
+ frac-digits(<nonnegative-integer>)
+ headers(
+ <empty>
+ <string> => <template-content>
+ <string> => <template-reference>
+ )
+ hook-commands(
+ setup(<string>)
+ shutdown(<string>)
+ startup(<string>)
+ teardown(<string>)
+ )
+ internal(<yesno>)
+ keep-alive(
+ <empty>
+ max-pings-without-data(<nonnegative-integer>)
+ time(<nonnegative-integer>)
+ timeout(<nonnegative-integer>)
+ )
+ local-time-zone(<string>)
+ log-fifo-size(<positive-integer>)
+ on-error(<string>)
+ password(<string>)
+ persist-name(<string>)
+ protobuf-schema(<path> => <template-content-list>)
+ retries(<positive-integer>)
+ schema(
+ <empty>
+ <string> <string> => <template-content>
+ <string> => <template-content>
+ )
+ send-time-zone(<string>)
+ table(<string>)
+ template-escape(<yesno>)
+ throttle(<nonnegative-integer>)
+ time-reopen(<positive-integer>)
+ time-zone(<string>)
+ ts-format(<string>)
+ url(<string>)
+ user(<string>)
+ worker-partition-key(<template-content>)
+ workers(<positive-integer>)
+)
|
342617b
to
b94b2d9
Compare
rebased to main and fixed the copyright check |
b68d55d
to
e407a4b
Compare
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.
Overall LGTM, nice!
e407a4b
to
4a604e2
Compare
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Imported from: https://github.com/ClickHouse/ClickHouse/blob/5b9f9a26071f00302fb2ee0176185d758d38d580/src/Server/grpc_protos/clickhouse_grpc.proto Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
This is needed, because these symbols collide with the ones in syslog.h. Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Based on: https://github.com/ClickHouse/ClickHouse/blob/5b9f9a26071f00302fb2ee0176185d758d38d580/utils/grpc-client/clickhouse-grpc-client.py Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Based on: https://clickhouse.com/docs/en/sql-reference/data-types Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
4a604e2
to
04d348f
Compare
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.
LGTM, nice! 🚀
Example config:
table creation in clickhouse:
make sure to enable grpc in clickhouse:
For reviewers:
Depends on #338