I am trying to load below data into spark-->
id,name,age,sal
1,a,12,100
2,b,24,200
3,c,36,300
4,d,48,15k
df <- spark_read_csv(sc,"tempData","path/temp.csv",columns = list(id = "integer",name = "character",age = "integer",sal = "integer"),overwrite = TRUE,badRecordsPath = "path/sosharm/")
I was expecting the last record should be output in badRecordsPath but it is outputting as NA in df.
Is there any reason badRecordsPath is not working?