DRILL-679: Support create table as query (CTAS).