mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix minor things
This commit is contained in:
parent
45e0f0350e
commit
07d03c0c67
@ -80,7 +80,6 @@ UUID parseUUID(std::span<const UInt8> src)
|
|||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void NO_INLINE throwAtAssertionFailed(const char * s, ReadBuffer & buf)
|
void NO_INLINE throwAtAssertionFailed(const char * s, ReadBuffer & buf)
|
||||||
{
|
{
|
||||||
WriteBufferFromOwnString out;
|
WriteBufferFromOwnString out;
|
||||||
@ -89,15 +88,12 @@ void NO_INLINE throwAtAssertionFailed(const char * s, ReadBuffer & buf)
|
|||||||
if (buf.eof())
|
if (buf.eof())
|
||||||
out << " at end of stream.";
|
out << " at end of stream.";
|
||||||
else
|
else
|
||||||
out << " before: " << quote << String(buf.position(), std::min(static_cast<ptrdiff_t>(1000), buf.buffer().end() - buf.position()));
|
out << " before: " << quote << String(buf.position(), std::min(SHOW_CHARS_ON_SYNTAX_ERROR, buf.buffer().end() - buf.position()));
|
||||||
|
|
||||||
throw Exception(
|
throw Exception(ErrorCodes::CANNOT_PARSE_INPUT_ASSERTION_FAILED, "Cannot parse input: expected {}", out.str());
|
||||||
ErrorCodes::CANNOT_PARSE_INPUT_ASSERTION_FAILED,
|
|
||||||
"Cannot parse input: expected {} {}",
|
|
||||||
out.str(),
|
|
||||||
buf.buffer().end() - buf.position());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool checkString(const char * s, ReadBuffer & buf)
|
bool checkString(const char * s, ReadBuffer & buf)
|
||||||
{
|
{
|
||||||
for (; *s; ++s)
|
for (; *s; ++s)
|
||||||
|
@ -125,12 +125,6 @@ public:
|
|||||||
, num_streams(num_streams_)
|
, num_streams(num_streams_)
|
||||||
, distributed_processing(distributed_processing_)
|
, distributed_processing(distributed_processing_)
|
||||||
{
|
{
|
||||||
LOG_DEBUG(&Poco::Logger::get("Read step created"), "Read step created");
|
|
||||||
LOG_DEBUG(&Poco::Logger::get("Conf"), "Keys size: {}", configuration->getPaths().size());
|
|
||||||
for (auto && key : configuration->getPaths())
|
|
||||||
{
|
|
||||||
LOG_DEBUG(&Poco::Logger::get("Conf"), "Current key: {}", key);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string getName() const override { return name; }
|
std::string getName() const override { return name; }
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<clickhouse>
|
<clickhouse>
|
||||||
<path>/var/lib/clickhouse/</path>
|
<path>/var/lib/clickhouse/</path>
|
||||||
</clickhouse>
|
</clickhouse>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
id,data
|
id,data
|
||||||
1,Str1
|
1,Str1
|
||||||
2,Str2
|
2,Str2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user