Skip to content

Commit 9d12eb1

Browse files
committed
add doc
1 parent 19907cf commit 9d12eb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeExtractors.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ object ExtractValue {
9797
* Returns the value of fields in the Struct `child`.
9898
*
9999
* No need to do type checking since it is handled by [[ExtractValue]].
100+
*
101+
* Note that we can pass in the field name directly to keep case preserving in `toString`.
102+
* For example, when get field `yEAr` from `<year: int, month: int>`, we should pass in `yEAr`.
100103
*/
101104
case class GetStructField(child: Expression, ordinal: Int, name: Option[String] = None)
102105
extends UnaryExpression {

0 commit comments

Comments
 (0)