I am using sparkv2.4.1, Have a scenario , where i need to convert given table structred as below
val df = Seq( ("A", "2016-01-01", "20