[#3340] Improved CREATE VIEW API