SENTRY-363: CTAS from view is requiring select on underlying table

(Sravya Tirukkovalur via Jarek Jarcec Cecho)