Re: multiple splits fails

2016-04-03 Thread Eliran Bivas
Correct. Each character in split() is used as a divider. Eliran Bivas From: Mich Talebzadeh <mich.talebza...@gmail.com> Sent: Apr 3, 2016 15:06 To: Eliran Bivas Cc: user @spark Subject: Re: multiple splits fails Hi Eliran, Many thanks for your input on this. I thought about wha

Re: multiple splits fails

2016-04-03 Thread Eliran Bivas
split(“\t”) lines.split(“,”) // Compilation error - no method split() exists for Array So either go with map(_.split(“\t”)).map(_.split(“,”)) or map(_.split(“\t,”)) Hope that helps. Eliran Bivas Data Team | iguaz.io<http://iguaz.io> On 3 Apr 2016, at 13:31, Mich Talebzadeh <mich.ta