[SPARK-2917] [SQL] Avoid table creation in logical plan analyzing for CTAS

We should add scala doc for what these parameters mean, in particular `insert` is not obvious.