You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
feature(cpimport): MCOL-5164 ignore all errors (-e all
)
This commit is contained in:
committed by
Leonid Fedorov
parent
7dca1da8f2
commit
1ce46b5e0b
@@ -412,7 +412,11 @@ int TableInfo::readTableData()
|
||||
// We keep a running total of read errors; fMaxErrorRows specifies
|
||||
// the error limit. Here's where we see how many more errors we
|
||||
// still have below the limit, and we pass this to fillFromFile().
|
||||
unsigned allowedErrCntThisCall = ((fMaxErrorRows > fTotalErrRows) ? (fMaxErrorRows - fTotalErrRows) : 0);
|
||||
int allowedErrCntThisCall;
|
||||
if (fMaxErrorRows == MAX_ERRORS_ALL)
|
||||
allowedErrCntThisCall = MAX_ERRORS_ALL;
|
||||
else
|
||||
allowedErrCntThisCall = static_cast<unsigned>(fMaxErrorRows) > fTotalErrRows ? fMaxErrorRows - fTotalErrRows : 0;
|
||||
|
||||
// Fill in the specified buffer.
|
||||
// fTotalReadRowsPerInputFile is ongoing total number of rows read,
|
||||
@@ -485,7 +489,7 @@ int TableInfo::readTableData()
|
||||
writeErrorList(&fBuffers[readBufNo].getErrorRows(), &fBuffers[readBufNo].getExactErrorRows(), false);
|
||||
fBuffers[readBufNo].clearErrRows();
|
||||
|
||||
if (fTotalErrRows > fMaxErrorRows)
|
||||
if (fMaxErrorRows != MAX_ERRORS_ALL && fTotalErrRows > static_cast<unsigned>(fMaxErrorRows))
|
||||
{
|
||||
// flush the reject data file and output the rejected rows
|
||||
// flush err file and output the rejected row id and the reason.
|
||||
|
Reference in New Issue
Block a user