{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/2725","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/2725/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/2725/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/2725/events","html_url":"https://github.com/neo4j/neo4j/issues/2725","id":38443864,"number":2725,"title":"Cypher feature request: post-UNION processing","user":{"login":"aseemk","id":537838,"avatar_url":"https://avatars.githubusercontent.com/u/537838?v=3","gravatar_id":"","url":"https://api.github.com/users/aseemk","html_url":"https://github.com/aseemk","followers_url":"https://api.github.com/users/aseemk/followers","following_url":"https://api.github.com/users/aseemk/following{/other_user}","gists_url":"https://api.github.com/users/aseemk/gists{/gist_id}","starred_url":"https://api.github.com/users/aseemk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseemk/subscriptions","organizations_url":"https://api.github.com/users/aseemk/orgs","repos_url":"https://api.github.com/users/aseemk/repos","events_url":"https://api.github.com/users/aseemk/events{/privacy}","received_events_url":"https://api.github.com/users/aseemk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-07-22T20:52:32Z","updated_at":"2015-02-02T12:49:51Z","closed_at":null,"body":"Related to issue #1879, but I'd like to ask for more holistic and general support for post-UNION processing, not just limiting/skipping/ordering.\r\n\r\nOne way to look at it is very much like a `WITH` clause. Perhaps `UNION WITH` would thus be a good name for it, or maybe `UNION RESULT` to convey that you're now acting on the entire union'ed result.\r\n\r\nOur major use case is aggregating a stream of content, where that content is queried in different ways. The important point is: we want to process the content *after* aggregation, not *before*. Without this ability with today's `UNION`, we're less efficient in some cases, and outright buggy in others.\r\n\r\nTo avoid making this description too long, I'll post an example of the problem in a comment, as well as a proposed syntax in another comment."},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/comments/72452910","html_url":"https://github.com/neo4j/neo4j/issues/2725#issuecomment-72452910","issue_url":"https://api.github.com/repos/neo4j/neo4j/issues/2725","id":72452910,"user":{"login":"vanderkorn","id":1671675,"avatar_url":"https://avatars.githubusercontent.com/u/1671675?v=3","gravatar_id":"","url":"https://api.github.com/users/vanderkorn","html_url":"https://github.com/vanderkorn","followers_url":"https://api.github.com/users/vanderkorn/followers","following_url":"https://api.github.com/users/vanderkorn/following{/other_user}","gists_url":"https://api.github.com/users/vanderkorn/gists{/gist_id}","starred_url":"https://api.github.com/users/vanderkorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanderkorn/subscriptions","organizations_url":"https://api.github.com/users/vanderkorn/orgs","repos_url":"https://api.github.com/users/vanderkorn/repos","events_url":"https://api.github.com/users/vanderkorn/events{/privacy}","received_events_url":"https://api.github.com/users/vanderkorn/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T12:49:51Z","updated_at":"2015-02-02T12:49:51Z","body":"+1"}}