aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinmukhammed <dinmukhammed@yandex-team.ru>2022-02-22 19:00:35 +0300
committerdinmukhammed <dinmukhammed@yandex-team.ru>2022-02-22 19:00:35 +0300
commit16bef245781f24c63adf7d00d040068ce628ffff (patch)
tree012a177c4ee8efd08a2490075a2cae504a9643b7
parente7ab21bd2d46927945fa5599685302b48a88ed8f (diff)
downloadydb-16bef245781f24c63adf7d00d040068ce628ffff.tar.gz
YQ-893 CSVWithNames --> csv_with_names
CSVWithNames ref:b11bd7288559540f42d13b94fddc6d22a9c1bc39
-rw-r--r--ydb/library/yql/udfs/common/clickhouse/client/src/Core/Settings.h4
-rw-r--r--ydb/library/yql/udfs/common/clickhouse/client/src/Processors/Formats/Impl/CSVRowInputFormat.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/ydb/library/yql/udfs/common/clickhouse/client/src/Core/Settings.h b/ydb/library/yql/udfs/common/clickhouse/client/src/Core/Settings.h
index 615a4d749b..1b2bb99487 100644
--- a/ydb/library/yql/udfs/common/clickhouse/client/src/Core/Settings.h
+++ b/ydb/library/yql/udfs/common/clickhouse/client/src/Core/Settings.h
@@ -535,8 +535,8 @@ class IColumn;
M(Bool, input_format_csv_unquoted_null_literal_as_null, false, "Consider unquoted NULL literal as \\N", 0) \
M(Bool, input_format_csv_enum_as_number, false, "Treat inserted enum values in CSV formats as enum indices \\N", 0) \
M(Bool, input_format_csv_arrays_as_nested_csv, false, R"(When reading Array from CSV, expect that its elements were serialized in nested CSV and then put into string. Example: "[""Hello"", ""world"", ""42"""" TV""]". Braces around array can be omitted.)", 0) \
- M(Bool, input_format_skip_unknown_fields, false, "Skip columns with unknown names from input data (it works for json_each_row, CSVWithNames, TSVWithNames and TSKV formats).", 0) \
- M(Bool, input_format_with_names_use_header, true, "For TSVWithNames and CSVWithNames input formats this controls whether format parser is to assume that column data appear in the input exactly as they are specified in the header.", 0) \
+ M(Bool, input_format_skip_unknown_fields, false, "Skip columns with unknown names from input data (it works for json_each_row, csv_with_names, TSVWithNames and TSKV formats).", 0) \
+ M(Bool, input_format_with_names_use_header, true, "For TSVWithNames and csv_with_names input formats this controls whether format parser is to assume that column data appear in the input exactly as they are specified in the header.", 0) \
M(Bool, input_format_import_nested_json, false, "Map nested JSON data to nested tables (it works for json_each_row format).", 0) \
M(Bool, input_format_defaults_for_omitted_fields, true, "For input data calculate default expressions for omitted fields (it works for json_each_row, CSV and TSV formats).", IMPORTANT) \
M(Bool, input_format_tsv_empty_as_default, false, "Treat empty fields in TSV input as default values.", 0) \
diff --git a/ydb/library/yql/udfs/common/clickhouse/client/src/Processors/Formats/Impl/CSVRowInputFormat.cpp b/ydb/library/yql/udfs/common/clickhouse/client/src/Processors/Formats/Impl/CSVRowInputFormat.cpp
index d62cc112d1..aad638637b 100644
--- a/ydb/library/yql/udfs/common/clickhouse/client/src/Processors/Formats/Impl/CSVRowInputFormat.cpp
+++ b/ydb/library/yql/udfs/common/clickhouse/client/src/Processors/Formats/Impl/CSVRowInputFormat.cpp
@@ -424,7 +424,7 @@ void registerInputFormatProcessorCSV(FormatFactory & factory)
{
for (bool with_names : {false, true})
{
- factory.registerInputFormatProcessor(with_names ? "CSVWithNames" : "CSV", [=](
+ factory.registerInputFormatProcessor(with_names ? "csv_with_names" : "CSV", [=](
ReadBuffer & buf,
const Block & sample,
IRowInputFormat::Params params,
@@ -502,7 +502,7 @@ static std::pair<bool, size_t> fileSegmentationEngineCSVImpl(ReadBuffer & in, DB
void registerFileSegmentationEngineCSV(FormatFactory & factory)
{
factory.registerFileSegmentationEngine("CSV", &fileSegmentationEngineCSVImpl);
- factory.registerFileSegmentationEngine("CSVWithNames", &fileSegmentationEngineCSVImpl);
+ factory.registerFileSegmentationEngine("csv_with_names", &fileSegmentationEngineCSVImpl);
}
}