Skip to content


TypedColumn is a[Column] with the <> for the types of the input and the output.

TypedColumn is <> using[as] operator on a Column.

[source, scala]

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

=== [[name]] name Operator

[source, scala]

name(alias: String): TypedColumn[T, U]

NOTE: name is part of[Column Contract] to...FIXME.


NOTE: name is used when...FIXME

=== [[withInputType]] Creating TypedColumn -- withInputType Internal Method

[source, scala]

withInputType( inputEncoder: ExpressionEncoder[_], inputAttributes: Seq[Attribute]): TypedColumn[T, U]


withInputType is used when the following typed operators are used:

Creating Instance

TypedColumn takes the following when created:

  • [[expr]] Catalyst expressions/[expression]
  • [[encoder]] ExpressionEncoder of the column results

TypedColumn initializes the <>.

Last update: 2020-11-16