Defualt encoding of data samples

I just noticed in windews machine you need to be careful with data in

as windows format as they are in linux othw u’ll get in trouble with code like this :stuck_out_tongue:

  sc.textFile(raw"file:///C:\tmp\orders\").map(rec=> {
 val r = rec.split(",")
 (r(0),r(1),r(2),r(3))
 }).collect.foreach(println)
1 Like