{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7743","labels_url":"https://api.github.com/repos/apache/spark/issues/7743/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7743/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7743/events","html_url":"https://github.com/apache/spark/pull/7743","id":97854889,"number":7743,"title":"[SPARK-8005][SQL] Input file name","user":{"login":"JDrit","id":2280727,"avatar_url":"https://avatars.githubusercontent.com/u/2280727?v=3","gravatar_id":"","url":"https://api.github.com/users/JDrit","html_url":"https://github.com/JDrit","followers_url":"https://api.github.com/users/JDrit/followers","following_url":"https://api.github.com/users/JDrit/following{/other_user}","gists_url":"https://api.github.com/users/JDrit/gists{/gist_id}","starred_url":"https://api.github.com/users/JDrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDrit/subscriptions","organizations_url":"https://api.github.com/users/JDrit/orgs","repos_url":"https://api.github.com/users/JDrit/repos","events_url":"https://api.github.com/users/JDrit/events{/privacy}","received_events_url":"https://api.github.com/users/JDrit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-29T04:02:27Z","updated_at":"2015-07-29T09:49:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7743","html_url":"https://github.com/apache/spark/pull/7743","diff_url":"https://github.com/apache/spark/pull/7743.diff","patch_url":"https://github.com/apache/spark/pull/7743.patch"},"body":"Users can now get the file name of the partition being read in. A thread local variable is in `SQLNewHadoopRDD` and is set when the partition is computed. `SQLNewHadoopRDD` is moved to core so that the catalyst package can reach it.\r\n\r\nThis supports:\r\n\r\n`df.select(inputFileName())`\r\n\r\nand\r\n\r\n`sqlContext.sql(\"select input_file_name() from table\")`"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/125899155","html_url":"https://github.com/apache/spark/pull/7743#issuecomment-125899155","issue_url":"https://api.github.com/repos/apache/spark/issues/7743","id":125899155,"user":{"login":"sarutak","id":4736016,"avatar_url":"https://avatars.githubusercontent.com/u/4736016?v=3","gravatar_id":"","url":"https://api.github.com/users/sarutak","html_url":"https://github.com/sarutak","followers_url":"https://api.github.com/users/sarutak/followers","following_url":"https://api.github.com/users/sarutak/following{/other_user}","gists_url":"https://api.github.com/users/sarutak/gists{/gist_id}","starred_url":"https://api.github.com/users/sarutak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarutak/subscriptions","organizations_url":"https://api.github.com/users/sarutak/orgs","repos_url":"https://api.github.com/users/sarutak/repos","events_url":"https://api.github.com/users/sarutak/events{/privacy}","received_events_url":"https://api.github.com/users/sarutak/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T09:49:24Z","updated_at":"2015-07-29T09:49:24Z","body":"ok to test."}}