https://issues.apache.org/jira/browse/SPARK-1944