From c1008cc1ea7fd797c0e9fe374dd36771d866728d Mon Sep 17 00:00:00 2001 From: Aleksandr Sorokoumov Date: Sat, 9 Jan 2021 15:43:37 +0100 Subject: [PATCH] CASSANDRA-16372 COPY FROM does not report failed rows as imported --- pylib/cqlshlib/copyutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/cqlshlib/copyutil.py b/pylib/cqlshlib/copyutil.py index e85558c7b0..3f7c091bb9 100644 --- a/pylib/cqlshlib/copyutil.py +++ b/pylib/cqlshlib/copyutil.py @@ -1238,7 +1238,7 @@ class ImportTask(CopyTask): attempts -= 1 self.printmsg("\n%d rows imported from %d files in %s (%d skipped)." % - (self.receive_meter.get_total_records(), + (self.receive_meter.get_total_records() - self.error_handler.num_rows_failed, self.feeding_result.num_sources if self.feeding_result else 0, self.describe_interval(time.time() - self.time_start), self.feeding_result.skip_rows if self.feeding_result else 0))