title: ERROR: org.apache.spark.sql.AnalysisException: Unable to infer schema for CSV
body: <p>I try this basic command to read a CSV in scala:</p>
  
  <pre><code>val df = spark.read
    .option("header", "true")
    .option("sep","|")
    .option("inferSchema", "true")
    .csv("path/to/_34File.csv")
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>org.apache.spark.sql.AnalysisException: Unable to infer schema for CSV. It must be specified manually.
  </code></pre>
  
  <p>What could be the solution?</p>