t.
4. Correct. Each character in split() is used as a divider.
Eliran Bivas
From: Mich Talebzadeh
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 what I was trying to achieve so I rewrote
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
mailto:mich.taleb