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();
|
const size_t character_position = p - file.begin();
|
||||||
if (*p == quoting_character)
|
if (*p == quoting_character)
|
||||||
{
|
{
|
||||||
|
// +1 to skip quoting character
|
||||||
return {character_position + 1u, State::READING_QUOTED_KEY};
|
return {character_position + 1u, State::READING_QUOTED_KEY};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -63,7 +64,7 @@ NextState InlineEscapingStateHandler::waitKey(std::string_view file) const
|
|||||||
|
|
||||||
NextState InlineEscapingStateHandler::readKey(std::string_view file, KeyType & key) 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();
|
key.clear();
|
||||||
|
|
||||||
|
@ -53,8 +53,7 @@ NextState NoEscapingStateHandler::waitKey(std::string_view file) const
|
|||||||
|
|
||||||
NextState NoEscapingStateHandler::readKey(std::string_view file, KeyType & key) const
|
NextState NoEscapingStateHandler::readKey(std::string_view file, KeyType & key) const
|
||||||
{
|
{
|
||||||
const auto & [key_value_delimiter, quoting_character, pair_delimiters]
|
const auto & [key_value_delimiter, _, pair_delimiters] = extractor_configuration;
|
||||||
= extractor_configuration;
|
|
||||||
|
|
||||||
key = {};
|
key = {};
|
||||||
|
|
||||||
@ -156,7 +155,7 @@ NextState NoEscapingStateHandler::waitValue(std::string_view file) const
|
|||||||
|
|
||||||
NextState NoEscapingStateHandler::readValue(std::string_view file, ValueType & value) 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 = {};
|
value = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user