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

Seems if users do not specify the database name, `resolved` will always be `false`. If we do not add the logic to resolve the database name, I suggest that we remove this change for now.