Provide row number when "Cannot read all data" during parsing input

This commit is contained in:
Alexey Milovidov 2020-11-03 23:32:18 +03:00
parent 2fae1c3c31
commit 0b1c96db51
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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: