From 9594c1843c1a941a4c83e4ec621505b165752890 Mon Sep 17 00:00:00 2001 From: Emmanuel BONIN Date: Fri, 29 Nov 2024 19:00:50 +0100 Subject: [PATCH] Added `input_format_json_throw_on_bad_escape_sequence` field in `ClickhouseSettings` type (#355) --- packages/client-common/src/settings.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client-common/src/settings.ts b/packages/client-common/src/settings.ts index ead06d8e..d5d58ccd 100644 --- a/packages/client-common/src/settings.ts +++ b/packages/client-common/src/settings.ts @@ -619,6 +619,8 @@ interface ClickHouseServerSettings { input_format_json_read_numbers_as_strings?: Bool /** Allow to parse JSON objects as strings in JSON input formats */ input_format_json_read_objects_as_strings?: Bool + /** Throw an exception if JSON string contains bad escape sequence. If disabled, bad escape sequences will remain as is in the data. Default value - true. */ + input_format_json_throw_on_bad_escape_sequence?: Bool /** Try to infer numbers from string fields while schema inference */ input_format_json_try_infer_numbers_from_strings?: Bool /** For JSON/JSONCompact/JSONColumnsWithMetadata input formats this controls whether format parser should check if data types from input metadata match data types of the corresponding columns from the table */