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

Can you let me know where do we resolve the `databaseName`?