Closed hohl closed 8 years ago
@hohl they just return null
if the value is null
, no transformation is performed here.
@hohl you probably want to use Option(row("column").asInstanceOf[String])
if you know that the column is nullable.
how about numeric values? row("column").asInstanceOf[Double] will give me 0.0
How to I read columns from ResultSets which I expect to be empty (NULL)? Something like
row("column").asInstanceOf[Option[String]]
doesn't work.