[SPARK-4274] [SQL] Print informative message while logical plan analyzing failed in test