title: Spark read csv: Using "sep" option for tab but everything comes up in one column
body: <p>I'm trying to read a tab-delimited file in spark (scala) like so:</p>
  
  <pre><code>spark.read.option("sep", '\t').csv(location)
  </code></pre>
  
  <p>But the schema comes out like this:</p>
  
  <pre><code>scala&gt; df.printSchema
  root
   |-- _c0: string (nullable = true)
  
  
  scala&gt; df.show
  +------+
  |   _c0|
  +------+
  |3  1   .1|
  |3  2   .2|
  |3  4   .3|
  |2  1   .4|
  |2  3   .5|
  +------+
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Update: I think this is different from the general question of how to read a TSV file in spark because it's not obvious that passing a character argument for the delimiter instead of a String should break anything--in fact when I stepped into the code it says it's just calling .toString on the value parameter, which <em>should</em> make passing '\t' equivalent to passing "\t". As it is I still don't know what's going wrong, but I do know that switching to "\t" fixed it. Hopefully someone who can explain the difference can chime in at some point.</p>