Currently, CSV datasource and from_csv returns a rows with all nulls for bad CSV records in the PERMISSIVE mode even some of fields were parsed and converted successfully. For example, the CSV input:
for the first line returned row is Row(null, null) but value 0 can be parsed and converted successfully. And result can be Row(0, null). This ticket aims to change implementation of UnivocityParser and return the partial result.