[ 
https://issues.apache.org/jira/browse/SPARK-32614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chandan updated SPARK-32614:
----------------------------
    Description: 
In most of the data ware housing scenarios files does not have comment records 
and every line needs to be treated as a valid record even though it starts with 
default comment character as \u0000 or null character.Though user can set any 
comment character other than \u0000, but there is a chance the actual record 
can start with those characters.

Currently for the below piece of code and the given testdata where first row 
starts with null \u0000
character it will throw the 

eg: val df = 
spark.read.option("delimiter",",").csv("file:/E:/Data/Testdata.dat");
      df.show(false);

*+TestData+*
 
 !screenshot-1.png! 
 

  was:
In most of the data ware housing scenarios files does not have comment records 
and every line needs to be treated as a valid record even though it starts with 
default comment character as \u0000 or null character.Though user can set any 
comment character other than \u0000, but there is a chance the actual record 
can start with those characters.

Currently for the below piece of code and the given testdata where first row 
starts with null \u0000
character

eg: val df = 
spark.read.option("delimiter",",").csv("file:/E:/Data/Testdata.dat");
      df.show(false);

*+TestData+*
 
 !screenshot-1.png! 
 


> Support for treating the line as valid record if it starts with \u0000 or 
> null character, or starts with any character mentioned as comment
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-32614
>                 URL: https://issues.apache.org/jira/browse/SPARK-32614
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core, SQL
>    Affects Versions: 3.0.0
>            Reporter: Chandan
>            Assignee: Jeff Evans
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> In most of the data ware housing scenarios files does not have comment 
> records and every line needs to be treated as a valid record even though it 
> starts with default comment character as \u0000 or null character.Though user 
> can set any comment character other than \u0000, but there is a chance the 
> actual record can start with those characters.
> Currently for the below piece of code and the given testdata where first row 
> starts with null \u0000
> character it will throw the 
> eg: val df = 
> spark.read.option("delimiter",",").csv("file:/E:/Data/Testdata.dat");
>       df.show(false);
> *+TestData+*
>  
>  !screenshot-1.png! 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to