mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
More verbose error message when conversion function cannot parse value from string [#METR-22408].
This commit is contained in:
parent
09563dc4da
commit
e387d94275
@ -22,7 +22,7 @@ void throwExceptionForIncompletelyParsedValue(
|
||||
else
|
||||
message_buf << " at begin of string";
|
||||
|
||||
if (to_type.isNumeric())
|
||||
if (to_type.behavesAsNumber())
|
||||
message_buf << ". Note: there are to" << to_type.getName() << "OrZero function, which returns zero instead of throwing exception.";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user