mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fixed most cases of misleading messages "Could not print diagnostic info because two last rows aren't in buffer (rare case)" [#METR-20000].
This commit is contained in:
parent
3336a66161
commit
3f9fc77e22
@ -134,6 +134,9 @@ bool CSVRowInputStream::read(Block & block)
|
||||
}
|
||||
catch (Exception & e)
|
||||
{
|
||||
if (istr.eof()) /// Buffer has gone, cannot extract information about what has been parsed.
|
||||
throw;
|
||||
|
||||
String verbose_diagnostic;
|
||||
{
|
||||
WriteBufferFromString diagnostic_out(verbose_diagnostic);
|
||||
|
@ -103,6 +103,9 @@ bool TabSeparatedRowInputStream::read(Block & block)
|
||||
}
|
||||
catch (Exception & e)
|
||||
{
|
||||
if (istr.eof()) /// Buffer has gone, cannot extract information about what has been parsed.
|
||||
throw;
|
||||
|
||||
String verbose_diagnostic;
|
||||
{
|
||||
WriteBufferFromString diagnostic_out(verbose_diagnostic);
|
||||
|
Loading…
Reference in New Issue
Block a user