scala> val id = $"id".as[Int]
id: org.apache.spark.sql.TypedColumn[Any,Int] = id
scala> id.expr
res1: org.apache.spark.sql.catalyst.expressions.Expression = 'id
TypedColumn
TypedColumn
is a Column with the ExpressionEncoder for the types of the input and the output.
name
Operator
name(alias: String): TypedColumn[T, U]
Note
|
name is part of Column Contract to…FIXME.
|
name
…FIXME
Note
|
name is used when…FIXME
|
Creating TypedColumn — withInputType
Internal Method
withInputType(
inputEncoder: ExpressionEncoder[_],
inputAttributes: Seq[Attribute]): TypedColumn[T, U]
withInputType
…FIXME
Note
|
|
Creating TypedColumn Instance
TypedColumn
takes the following when created:
-
Catalyst expression
-
ExpressionEncoder of the column results
TypedColumn
initializes the internal registries and counters.