{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/10943","labels_url":"https://api.github.com/repos/apache/spark/issues/10943/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/10943/comments","events_url":"https://api.github.com/repos/apache/spark/issues/10943/events","html_url":"https://github.com/apache/spark/pull/10943","id":129055930,"number":10943,"title":"[SPARK-12988][SQL] Can't drop columns that contain dots","user":{"login":"dilipbiswal","id":14225158,"avatar_url":"https://avatars.githubusercontent.com/u/14225158?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipbiswal","html_url":"https://github.com/dilipbiswal","followers_url":"https://api.github.com/users/dilipbiswal/followers","following_url":"https://api.github.com/users/dilipbiswal/following{/other_user}","gists_url":"https://api.github.com/users/dilipbiswal/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipbiswal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipbiswal/subscriptions","organizations_url":"https://api.github.com/users/dilipbiswal/orgs","repos_url":"https://api.github.com/users/dilipbiswal/repos","events_url":"https://api.github.com/users/dilipbiswal/events{/privacy}","received_events_url":"https://api.github.com/users/dilipbiswal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-27T07:07:30Z","updated_at":"2016-02-02T01:38:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10943","html_url":"https://github.com/apache/spark/pull/10943","diff_url":"https://github.com/apache/spark/pull/10943.diff","patch_url":"https://github.com/apache/spark/pull/10943.patch"},"body":"Neither of theses works:\r\nval df = Seq((1, 1)).toDF(\"a_b\", \"a.c\")\r\ndf.drop(\"a.c\").collect()\r\n\r\ndf: org.apache.spark.sql.DataFrame = [a_b: int, a.c: int]\r\nval df = Seq((1, 1)).toDF(\"a_b\", \"a.c\")\r\ndf.drop(\"`a.c`\").collect()\r\n\r\ndf: org.apache.spark.sql.DataFrame = [a_b: int, a.c: int]\r\nGiven that you can't use drop to drop subfields, it seems to me that we should treat the column name literally (i.e. as though it is wrapped in back ticks)"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/178299378","html_url":"https://github.com/apache/spark/pull/10943#issuecomment-178299378","issue_url":"https://api.github.com/repos/apache/spark/issues/10943","id":178299378,"user":{"login":"dilipbiswal","id":14225158,"avatar_url":"https://avatars.githubusercontent.com/u/14225158?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipbiswal","html_url":"https://github.com/dilipbiswal","followers_url":"https://api.github.com/users/dilipbiswal/followers","following_url":"https://api.github.com/users/dilipbiswal/following{/other_user}","gists_url":"https://api.github.com/users/dilipbiswal/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipbiswal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipbiswal/subscriptions","organizations_url":"https://api.github.com/users/dilipbiswal/orgs","repos_url":"https://api.github.com/users/dilipbiswal/repos","events_url":"https://api.github.com/users/dilipbiswal/events{/privacy}","received_events_url":"https://api.github.com/users/dilipbiswal/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T01:38:02Z","updated_at":"2016-02-02T01:38:02Z","body":"@cloud-fan Thanks a lot. I have implemented as per your input."}}