[ https://issues.apache.org/jira/browse/SPARK-19729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-19729. ---------------------------------- Resolution: Invalid I am resolving this as {{Invalid}}. Please reopen this if I was wrong with updating the JIRA description. I could not see what is a problem here. > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org