PT-225 pt-table-cheksum ignores generated columns

This commit is contained in:
Carlos Salguero
2017-11-23 17:26:16 -03:00
parent ebe0569a9d
commit 17ecf7eb0a
4 changed files with 122 additions and 1 deletions

View File

@@ -10705,7 +10705,7 @@ sub main {
# TODO: this now happens in 3 places, search for 'columns'.
my $tbl_struct = $tbl->{tbl_struct};
my $ignore_col = $o->get('ignore-columns') || {};
my $all_cols = $o->get('columns') || $tbl_struct->{cols};
my $all_cols = $o->get('columns') || $tbl_struct->{non_generated_cols};
my @cols = map { lc $_ }
grep { !$ignore_col->{$_} }
@$all_cols;