mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Provide row number when "Cannot read all data" during parsing input
This commit is contained in:
parent
2fae1c3c31
commit
0b1c96db51
@ -14,6 +14,7 @@ namespace ErrorCodes
|
||||
extern const int CANNOT_PARSE_DATE;
|
||||
extern const int CANNOT_PARSE_DATETIME;
|
||||
extern const int CANNOT_READ_ARRAY_FROM_TEXT;
|
||||
extern const int CANNOT_READ_ALL_DATA;
|
||||
extern const int CANNOT_PARSE_NUMBER;
|
||||
extern const int CANNOT_PARSE_UUID;
|
||||
extern const int TOO_LARGE_STRING_SIZE;
|
||||
@ -32,6 +33,7 @@ bool isParseError(int code)
|
||||
|| code == ErrorCodes::CANNOT_READ_ARRAY_FROM_TEXT
|
||||
|| code == ErrorCodes::CANNOT_PARSE_NUMBER
|
||||
|| code == ErrorCodes::CANNOT_PARSE_UUID
|
||||
|| code == ErrorCodes::CANNOT_READ_ALL_DATA
|
||||
|| code == ErrorCodes::TOO_LARGE_STRING_SIZE
|
||||
|| code == ErrorCodes::ARGUMENT_OUT_OF_BOUND /// For Decimals
|
||||
|| code == ErrorCodes::INCORRECT_DATA; /// For some ReadHelpers
|
||||
|
@ -37,7 +37,7 @@ struct RowInputFormatParams
|
||||
bool isParseError(int code);
|
||||
bool checkTimeLimit(const RowInputFormatParams & params, const Stopwatch & stopwatch);
|
||||
|
||||
///Row oriented input format: reads data row by row.
|
||||
/// Row oriented input format: reads data row by row.
|
||||
class IRowInputFormat : public IInputFormat
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user