WeichenXu123 commented on code in PR #48398:
URL: https://github.com/apache/spark/pull/48398#discussion_r1793642672


##########
sql/api/src/main/scala/org/apache/spark/sql/types/StructType.scala:
##########
@@ -377,6 +377,62 @@ case class StructType(fields: Array[StructField]) extends 
DataType with Seq[Stru
     findFieldInStruct(this, fieldNames, Nil)
   }
 
+  /**
+   * Returns a field in this struct and its child structs, case insensitively. 
This is slightly less
+   * performant than the case sensitive version.
+   *
+   * If includeCollections is true, this will return fields that are nested in 
maps and arrays.
+   *
+   * @param fieldNames The path to the field, in order from the root. For 
example, the column
+   *                   nested.a.b.c would be Seq("nested", "a", "b", "c").
+   */
+  private[spark] def findNestedFieldIgnoreCase(

Review Comment:
   > pass a case insensitive resolver
   
   any example code ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to