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

ok. I see. `CreateTables` will get the db name.