You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Willi Raschkowski (Jira)" <ji...@apache.org> on 2023/02/06 13:37:00 UTC

[jira] [Created] (SPARK-42359) Support row skipping when reading CSV files

Willi Raschkowski created SPARK-42359:
-----------------------------------------

             Summary: Support row skipping when reading CSV files
                 Key: SPARK-42359
                 URL: https://issues.apache.org/jira/browse/SPARK-42359
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.3.1
            Reporter: Willi Raschkowski


Spark currently can't read CSV files that contain lines with comments or annotations above the header and data. Work-arounds include pre-processing CSVs, or using RDDs and something like {{zipWithIndex}}. But all of these increase friction for less technical users.

This issue proposes a {{skipLines}} option for Spark's CSV parser to drop a number of unwanted lines at the top of a CSV file.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org