{"action":"closed","issue":{"url":"https://api.github.com/repos/databricks/spark-csv/issues/131","labels_url":"https://api.github.com/repos/databricks/spark-csv/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/databricks/spark-csv/issues/131/comments","events_url":"https://api.github.com/repos/databricks/spark-csv/issues/131/events","html_url":"https://github.com/databricks/spark-csv/issues/131","id":102236612,"number":131,"title":"FAILFAST mode does not show which line it failed on","user":{"login":"avilay","id":1924867,"avatar_url":"https://avatars.githubusercontent.com/u/1924867?v=3","gravatar_id":"","url":"https://api.github.com/users/avilay","html_url":"https://github.com/avilay","followers_url":"https://api.github.com/users/avilay/followers","following_url":"https://api.github.com/users/avilay/following{/other_user}","gists_url":"https://api.github.com/users/avilay/gists{/gist_id}","starred_url":"https://api.github.com/users/avilay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avilay/subscriptions","organizations_url":"https://api.github.com/users/avilay/orgs","repos_url":"https://api.github.com/users/avilay/repos","events_url":"https://api.github.com/users/avilay/events{/privacy}","received_events_url":"https://api.github.com/users/avilay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-20T21:03:10Z","updated_at":"2015-08-20T22:14:04Z","closed_at":"2015-08-20T22:14:04Z","body":"It would be good if the FAILFAST exception gave the line number or the contents of the line it failed on. Currently I get something like - \r\n    \r\n    Malformed line in FAILFAST mode: [Ljava.lang.String;@5f16e0c\r\n\r\nLooking at https://github.com/databricks/spark-csv/blob/master/src/main/scala/com/databricks/spark/csv/CsvRelation.scala#L109 it seems that this is because the entire $tokens array is being printed instead of using something like Array.toString(). \r\n\r\nAre there any plans of fixing this anytime soon?"}}