[SPARK-3688][SQL]LogicalPlan can't resolve column correctlly

we should add some judgements base on the datatype to handle some particular sql descript in https://issues.apache.org/jira/browse/SPARK-3688
Please rename this test...