into

open infix fun <C> ColumnSet<C>.into(name: String): ColumnSet<C>
open infix fun <C> ColumnSet<C>.into(path: ColumnPath): ColumnSet<C>
open infix fun <C> SingleColumn<C>.into(path: ColumnPath): SingleColumn<C>


open infix override fun <C> SingleColumn<C>.into(newName: String): SingleColumn<C>

Rename: named / into

Renaming a column in the ColumnsSelectionDsl is done by calling the infix functions named or into. They behave exactly the same, so it's up to contextual preference which one to use. Any combination of Access APIs can be used to specify the column to rename and which name should be used instead.

For more information: See Rename: named / into on the documentation website.

Check out: Grammar

For Example:

df.select{ name named"Full Name" }

df.select{ expr{ 0 } into"zeroes" }

df.select{ "colA" namedType::colB }

Example for this overload:

df.select{ col(0) into"columnB" }

Receiver

The SingleColumn referencing the column to rename.

Return

A ColumnReference to the renamed column.

Parameters

newName

A String used to specify the new name of the column.