Skip to content

Commit 3f880c3

Browse files
committed
add java doc
1 parent ab35ab5 commit 3f880c3

File tree

1 file changed

+7
-0
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis

1 file changed

+7
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/unresolved.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ case class ResolvedStar(expressions: Seq[NamedExpression]) extends Star {
184184
override def toString: String = expressions.mkString("ResolvedStar(", ", ", ")")
185185
}
186186

187+
/**
188+
* Get field of an expression
189+
*
190+
* @param child The expression to get field of, can be Map, Array, Struct or array of Struct.
191+
* @param fieldExpr The expression to describe the field,
192+
* can be key of Map, index of Array, field name of Struct.
193+
*/
187194
case class UnresolvedGetField(child: Expression, fieldExpr: Expression) extends UnaryExpression {
188195
override def dataType: DataType = throw new UnresolvedException(this, "dataType")
189196
override def foldable: Boolean = throw new UnresolvedException(this, "foldable")

0 commit comments

Comments
 (0)