Mazen Melouk created SPARK-19729:
------------------------------------
Summary: Strange behaviour with reading csv with schema into
dataframe
Key: SPARK-19729
URL: https://issues.apache.org/jira/browse/SPARK-19729
Project: Spark
Issue Type: Bug
Components: Java API, SQL
Affects Versions: 2.0.1
Reporter: Mazen Melouk
I have the following schema
[{first,string_type,false}
,{second,string_type,false}
,{third,string_type,false}
,{fourth,string_type,false}]
Example lines:
var1,var2,,
when accessing the row I get the following
row.size =4
row.fieldIndex(third_string)=2
row.getAs(third_string)=var2
row.get(2)=var2
print(row)= var1,var2
Any idea why the null values are missing?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]