cloud-fan commented on code in PR #48398:
URL: https://github.com/apache/spark/pull/48398#discussion_r1793640483


##########
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:
   Looks like we can simply call the existing `findNestedField` and pass a case 
insensitive resolver



-- 
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