fix: don't add rows for non selected tables [backport/v4-fix]

Backport of !3976 (merged)


Merge request reports

Loading