Custom delimiter csv reader spark

Use spark.read.option("delimiter", "\t").csv(file) or sep instead of delimiter.

If it’s literally \t, not tab special character, use double \: spark.read.option("delimiter", "\\t").csv(file)

Leave a Comment