SPARK-3688 add a function in StructType to check valid reference
SPARK-3688 add a function in StructType to check valid reference
revert datatye change, use resolveNesting instead.