You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mazen Melouk (JIRA)" <ji...@apache.org> on 2017/02/24 17:56:44 UTC
[jira] [Created] (SPARK-19729) Strange behaviour with reading csv
with schema into dataframe
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org