v.20.3Bug Fix

Fix Type Mismatches in View Definitions with SELECT Queries

Convert types if the table definition of a View does not correspond to the SELECT query. This fixes #10180 and #10022. #10217 (alexey-milovidov).