mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Minor adjustments
This commit is contained in:
parent
afc6b66eb3
commit
73430b8d57
@ -44,6 +44,7 @@ NextState InlineEscapingStateHandler::waitKey(std::string_view file) const
|
||||
const size_t character_position = p - file.begin();
|
||||
if (*p == quoting_character)
|
||||
{
|
||||
// +1 to skip quoting character
|
||||
return {character_position + 1u, State::READING_QUOTED_KEY};
|
||||
}
|
||||
else
|
||||
@ -63,7 +64,7 @@ NextState InlineEscapingStateHandler::waitKey(std::string_view file) const
|
||||
|
||||
NextState InlineEscapingStateHandler::readKey(std::string_view file, KeyType & key) const
|
||||
{
|
||||
const auto & [key_value_delimiter, quoting_character, pair_delimiters] = extractor_configuration;
|
||||
const auto & [key_value_delimiter, _, pair_delimiters] = extractor_configuration;
|
||||
|
||||
key.clear();
|
||||
|
||||
|
@ -53,8 +53,7 @@ NextState NoEscapingStateHandler::waitKey(std::string_view file) const
|
||||
|
||||
NextState NoEscapingStateHandler::readKey(std::string_view file, KeyType & key) const
|
||||
{
|
||||
const auto & [key_value_delimiter, quoting_character, pair_delimiters]
|
||||
= extractor_configuration;
|
||||
const auto & [key_value_delimiter, _, pair_delimiters] = extractor_configuration;
|
||||
|
||||
key = {};
|
||||
|
||||
@ -156,7 +155,7 @@ NextState NoEscapingStateHandler::waitValue(std::string_view file) const
|
||||
|
||||
NextState NoEscapingStateHandler::readValue(std::string_view file, ValueType & value) const
|
||||
{
|
||||
const auto & [key_value_delimiter, quoting_character, pair_delimiters] = extractor_configuration;
|
||||
const auto & [key_value_delimiter, _, pair_delimiters] = extractor_configuration;
|
||||
|
||||
value = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user