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

Yeah, as long as you don't remove `InsertIntoCreatedTable` from SchemaRDDLike.scala I'm okay with pushing the other changes to another PR.