I am trying to create a dataframe with One row whose values are null.
val df = Seq(null,null).toDF("a","b")
Faced issues even if we used null.instanceof also with no success.
val df = Seq(null.asInstanceOf[Integer],null.asInstanceOf[Integer]).toDF("a","b")
This works but I don't like to specify the type of field mostly it should be string.