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

In the rule `CreateTables`, https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala#L114