title: Prevent delimiter collision while reading csv in Spark
body: <p>I'm trying to create an RDD using a CSV dataset. </p>
  
  <p>The problem is that I have a column <code>location</code> that has a structure like <code>(11112,222222)</code> that I dont use. </p>
  
  <p>So when I use the <code>map</code> function with <code>split(",")</code> its resulting in two columns.</p>
  
  <p>Here is my code :</p>
  
  <pre><code>     val header = collisionsRDD.first 
  
       case class Collision (date:String,time:String,borogh:String,zip:String,
        onStreet:String,crossStreet:String,                                  
        offStreet:String,numPersInjured:Int,
        numPersKilled:Int,numPedesInjured:Int,numPedesKilled:Int,
        numCyclInjured:Int,numCycleKilled:Int,numMotoInjured:Int)   
  
  
       val collisionsPlat = collisionsRDD.filter(h =&gt; h != header).
                  map(x =&gt; x.split(",").map(x =&gt; x.replace("\"","")))
  
       val collisionsCase = collisionsPlat.map(x =&gt; Collision(x(0),
                                  x(1), x(2), x(3),                  
                                  x(8), x(9), x(10),
                                  x(11).toInt,x(12).toInt,
                                  x(13).toInt,x(14).toInt,
                                  x(15).toInt,x(16).toInt,
                                  x(17).toInt))
       collisionsCase.take(5)                                                  
  </code></pre>
  
  <p>How can I catch the <code>,</code> inside this field and not consider it as a CSV delimiter? </p>