Add a function to coalesce a schema into a view