The problem was in incorrect detection of merged views in tem_direct_view_ref::used_tables() .
Attach a file by drag & drop or click to upload