{"action":"created","issue":{"url":"https://api.github.com/repos/nathanmarz/cascalog/issues/269","labels_url":"https://api.github.com/repos/nathanmarz/cascalog/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/nathanmarz/cascalog/issues/269/comments","events_url":"https://api.github.com/repos/nathanmarz/cascalog/issues/269/events","html_url":"https://github.com/nathanmarz/cascalog/issues/269","id":57994370,"number":269,"title":"Prepared operations are confusing","user":{"login":"ipostelnik","id":308114,"avatar_url":"https://avatars.githubusercontent.com/u/308114?v=3","gravatar_id":"","url":"https://api.github.com/users/ipostelnik","html_url":"https://github.com/ipostelnik","followers_url":"https://api.github.com/users/ipostelnik/followers","following_url":"https://api.github.com/users/ipostelnik/following{/other_user}","gists_url":"https://api.github.com/users/ipostelnik/gists{/gist_id}","starred_url":"https://api.github.com/users/ipostelnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipostelnik/subscriptions","organizations_url":"https://api.github.com/users/ipostelnik/orgs","repos_url":"https://api.github.com/users/ipostelnik/repos","events_url":"https://api.github.com/users/ipostelnik/events{/privacy}","received_events_url":"https://api.github.com/users/ipostelnik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nathanmarz/cascalog/labels/Improvement","name":"Improvement","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-17T22:43:46Z","updated_at":"2015-04-18T19:51:10Z","closed_at":null,"body":"Functions declared using `(prepfn)` are treated by cascalog as vanila clojure funcitons and so behave as regular map/filter functions. If you want to make a prepared mapcat/buffer/aggregator you have to write:\r\n\r\n```clojure\r\n(def prepped-mapcat-op (mapcatop (prepfn [fp call] ...)))\r\n```\r\n\r\nrather than returning a mapcatfn out of prepfn as examples imply. In fact, there's never a reason to use any special *fn's in the body of a prepared function.\r\n\r\nWe should come up with a better syntax for these or make better docs."},"comment":{"url":"https://api.github.com/repos/nathanmarz/cascalog/issues/comments/94196312","html_url":"https://github.com/nathanmarz/cascalog/issues/269#issuecomment-94196312","issue_url":"https://api.github.com/repos/nathanmarz/cascalog/issues/269","id":94196312,"user":{"login":"sritchie","id":69635,"avatar_url":"https://avatars.githubusercontent.com/u/69635?v=3","gravatar_id":"","url":"https://api.github.com/users/sritchie","html_url":"https://github.com/sritchie","followers_url":"https://api.github.com/users/sritchie/followers","following_url":"https://api.github.com/users/sritchie/following{/other_user}","gists_url":"https://api.github.com/users/sritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/sritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sritchie/subscriptions","organizations_url":"https://api.github.com/users/sritchie/orgs","repos_url":"https://api.github.com/users/sritchie/repos","events_url":"https://api.github.com/users/sritchie/events{/privacy}","received_events_url":"https://api.github.com/users/sritchie/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T19:51:10Z","updated_at":"2015-04-18T19:51:10Z","body":"Oh, that's interesting. Yeah, I guess we could access that metadata from within Java. Any interest in trying that out, @ipostelnik ?\r\n"}}