-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(clickhouse sink)!: make
skip_unknown_fields
optional
Problem: The Clickhouse sink's `skip_unknown_fields` doesn't follow the Clickhouse server default. It always sends a value for `skip_unknown_fields`; furthermore, there is also no way to _disable_ `skip_unknown_fields` setting a "strict" mode for Clickhouse. We really want to permit either a default value from the Clickhouse server, meaning we shouldn't specify `skip_unknown_fields` by default. Otherwise, if a user _wants_ to specify the strict mode for unknown fields, they should then pass either `true` or `false` for click house. Solution: Change the `skip_unknown_fields` value to be of an `Option<bool>` instead of just a `bool`. This permits using the defaults provided by the Clickhouse server and doesn't send the `skip_unknown_fields` value to the server if left unspecified. See #22013 for the original issue report. Closes #22013
- Loading branch information
1 parent
0b801eb
commit 2f1edf0
Showing
4 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelog.d/22013-optional-clickhouse-skip_unknown_fields.fix.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Allow the `skip_unknown_fields` setting to be optional, thereby allowing use of the defaults provided by the ClickHouse server. Setting it to `true` will permit skipping unknown fields and `false` will make ClickHouse strict on what fields it accepts. | ||
|
||
authors: PriceHiller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters