diff options
author | azevaykin <145343289+azevaykin@users.noreply.github.com> | 2024-01-24 13:32:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 13:32:47 +0300 |
commit | adc39a9bda02087223003bfdb3111791b0b56b12 (patch) | |
tree | cea183de19363b8f20378bc11b66de7c3dd100b1 | |
parent | eb06b6627d98e908945c9caf50c120b77a209cb8 (diff) | |
download | ydb-adc39a9bda02087223003bfdb3111791b0b56b12.tar.gz |
CheckCellValue after MakeCell (#1252)
-rw-r--r-- | ydb/core/io_formats/csv_ydb_dump.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ydb/core/io_formats/csv_ydb_dump.cpp b/ydb/core/io_formats/csv_ydb_dump.cpp index 3c8176132e..53feedfde2 100644 --- a/ydb/core/io_formats/csv_ydb_dump.cpp +++ b/ydb/core/io_formats/csv_ydb_dump.cpp @@ -341,17 +341,17 @@ bool TYdbDump::ParseLine(TStringBuf line, const std::vector<std::pair<i32, NSche Y_ABORT_UNLESS(cell); - if (!CheckCellValue(*cell, pType)) { - strError = TStringBuilder() << "Value check error: '" << value << "'"; - return false; - } - TString parseError; if (!MakeCell(*cell, value, pType, pool, parseError)) { strError = TStringBuilder() << "Value parse error: '" << value << "' " << parseError; return false; } + if (!CheckCellValue(*cell, pType)) { + strError = TStringBuilder() << "Value check error: '" << value << "'"; + return false; + } + numBytes += cell->Size(); } |