Skip to content

TypedColumn

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

TypedColumn is <> using spark-sql-Column.md#as[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 spark-sql-Column.md#name[Column Contract] to...FIXME.

name...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...FIXME

withInputType is used when the following typed operators are used:

Creating Instance

TypedColumn takes the following when created:

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

TypedColumn initializes the <>.


Last update: 2020-11-16