v.20.6Bug Fix
Fix "bad cast" exception for nullable filters on virtual and index columns
Avoid "bad cast" exception when there is an expression that filters data by virtual columns (like_tableinMergetables) or by "index" columns in system tables such as filtering by database name when querying fromsystem.tables, and this expression returnsNullabletype. This fixes #12166. #12305 (alexey-milovidov).