databricks/spark-csv — pull request #5 by falaki (2014-12-17 00:38:09+00:00)
Title: Making first line non-lazy to avoid computing in workers

SparkContext object is null inside workers. Therefore the first line has to be computed on driver.