>
> Also, while extracting a value into Dataset using as[U] method, how could
> I specify a custom encoder/translation to case class (where I don't have
> the same column-name mapping or same data-type mapping)?
>

There is no public API yet for defining your own encoders.  You change the
column names using select and as to make sure they line up correctly.

df.select($"oldName".as("newName"))

Reply via email to