mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-23 10:10:50 +00:00
Allow semicolon after JSONEachRow lines, for convenience [#CLICKHOUSE-2]
This commit is contained in:
parent
0e77575a76
commit
25209bf040
@ -124,7 +124,7 @@ bool JSONEachRowRowInputStream::read(Block & block)
|
|||||||
}
|
}
|
||||||
|
|
||||||
skipWhitespaceIfAny(istr);
|
skipWhitespaceIfAny(istr);
|
||||||
if (!istr.eof() && *istr.position() == ',')
|
if (!istr.eof() && (*istr.position() == ',' || *istr.position() == ';')) /// Semicolon is added for convenience as it could be used at end of INSERT query.
|
||||||
++istr.position();
|
++istr.position();
|
||||||
|
|
||||||
/// Fill non-visited columns with the default values.
|
/// Fill non-visited columns with the default values.
|
||||||
|
Loading…
Reference in New Issue
Block a user