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

Instead of this, can we just make `schema: Seq[Attribute]` an argument of this class.