{"action":"created","issue":{"url":"https://api.github.com/repos/databricks/spark-csv/issues/278","repository_url":"https://api.github.com/repos/databricks/spark-csv","labels_url":"https://api.github.com/repos/databricks/spark-csv/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/databricks/spark-csv/issues/278/comments","events_url":"https://api.github.com/repos/databricks/spark-csv/issues/278/events","html_url":"https://github.com/databricks/spark-csv/issues/278","id":137626314,"number":278,"title":"negative numbers quoted in output","user":{"login":"remster","id":8327961,"avatar_url":"https://avatars.githubusercontent.com/u/8327961?v=3","gravatar_id":"","url":"https://api.github.com/users/remster","html_url":"https://github.com/remster","followers_url":"https://api.github.com/users/remster/followers","following_url":"https://api.github.com/users/remster/following{/other_user}","gists_url":"https://api.github.com/users/remster/gists{/gist_id}","starred_url":"https://api.github.com/users/remster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remster/subscriptions","organizations_url":"https://api.github.com/users/remster/orgs","repos_url":"https://api.github.com/users/remster/repos","events_url":"https://api.github.com/users/remster/events{/privacy}","received_events_url":"https://api.github.com/users/remster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-01T16:44:12Z","updated_at":"2016-03-03T23:55:00Z","closed_at":null,"body":"when saving dataframes with \"com.databricks.spark.csv\" negative numbers are quoted (undesired), but only when they appear in the first column.\r\n\r\nlib version:     compile \"com.databricks:spark-csv_${scalaVersionMain}:1.3.0\"\r\n```\r\nSteps to reproduce:\r\n      SparkBase.sqlContext.sql(\"SELECT -1 as negative, 1 as positive\").write\r\n        .format(\"com.databricks.spark.csv\")\r\n        .option(\"header\", \"true\")\r\n        .option(\"quoteMode\", \"NONE\")\r\n        .mode(SaveMode.Overwrite)\r\n        .save(mockGridPath.toString)\r\n      new String(\r\n        Files.readAllBytes(Paths.get(mockGridPath.toString, \"part-00000\"))\r\n      ) must equalTo(\"negative,positive\\n\\\"-1\\\",1\\n\")\r\n\r\n      SparkBase.sqlContext.sql(\"SELECT 1 as positive, -1 as negative\").write\r\n        .format(\"com.databricks.spark.csv\")\r\n        .option(\"header\", \"true\")\r\n        .option(\"quoteMode\", \"NONE\")\r\n        .mode(SaveMode.Overwrite)\r\n        .save(mockGridPath.toString)\r\n      new String(\r\n        Files.readAllBytes(Paths.get(mockGridPath.toString, \"part-00000\"))\r\n      ) must equalTo(\"positive,negative\\n1,-1\\n\")\r\n```"},"comment":{"url":"https://api.github.com/repos/databricks/spark-csv/issues/comments/192026302","html_url":"https://github.com/databricks/spark-csv/issues/278#issuecomment-192026302","issue_url":"https://api.github.com/repos/databricks/spark-csv/issues/278","id":192026302,"user":{"login":"falaki","id":512364,"avatar_url":"https://avatars.githubusercontent.com/u/512364?v=3","gravatar_id":"","url":"https://api.github.com/users/falaki","html_url":"https://github.com/falaki","followers_url":"https://api.github.com/users/falaki/followers","following_url":"https://api.github.com/users/falaki/following{/other_user}","gists_url":"https://api.github.com/users/falaki/gists{/gist_id}","starred_url":"https://api.github.com/users/falaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falaki/subscriptions","organizations_url":"https://api.github.com/users/falaki/orgs","repos_url":"https://api.github.com/users/falaki/repos","events_url":"https://api.github.com/users/falaki/events{/privacy}","received_events_url":"https://api.github.com/users/falaki/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T23:55:00Z","updated_at":"2016-03-03T23:55:00Z","body":"This is addressed by https://github.com/databricks/spark-csv/pull/271"}}