I am very much new to scala and I have a csv file :
MSH ModZId ModProd Date
1140000 zzz abc 2/19/2018
1140000 zzz xyz 2/19/2018
651 zzz def 2/19/2018
651 zzz ghi 2/19/2018
1140000 zzz klm 2/19/2018
860000 zzz mno 2/26/2018
860000 zzz pqr 2/26/2018
122 zzz stu 2/26/2018
122 zzz wxy 2/26/2018
860000 zzz ijk 2/26/2018
I need to partition the csv file on the basis of date and convert the partition on to the parquet like below:
Parquet Output 1:
MSH ModZId ModProd Date
1140000 zzz abc 2/19/2018
1140000 zzz xyz 2/19/2018
651 zzz def 2/19/2018
651 zzz ghi 2/19/2018
1140000 zzz klm 2/19/2018
Parquet Output 2 :
MSH ModZId ModProd Date
860000 zzz mno 2/26/2018
860000 zzz pqr 2/26/2018
122 zzz stu 2/26/2018
122 zzz wxy 2/26/2018
860000 zzz ijk 2/26/2018
Can anyone please help me .I am very much new and do not know how can i partition the csv file in scala on the basis of date