{"action":"closed","issue":{"url":"https://api.github.com/repos/raw-db/raw/issues/53","labels_url":"https://api.github.com/repos/raw-db/raw/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/raw-db/raw/issues/53/comments","events_url":"https://api.github.com/repos/raw-db/raw/issues/53/events","html_url":"https://github.com/raw-db/raw/issues/53","id":60684055,"number":53,"title":"Unnester fails with expressions with empty qualifier","user":{"login":"nfsantos","id":776333,"avatar_url":"https://avatars.githubusercontent.com/u/776333?v=3","gravatar_id":"","url":"https://api.github.com/users/nfsantos","html_url":"https://github.com/nfsantos","followers_url":"https://api.github.com/users/nfsantos/followers","following_url":"https://api.github.com/users/nfsantos/following{/other_user}","gists_url":"https://api.github.com/users/nfsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/nfsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfsantos/subscriptions","organizations_url":"https://api.github.com/users/nfsantos/orgs","repos_url":"https://api.github.com/users/nfsantos/repos","events_url":"https://api.github.com/users/nfsantos/events{/privacy}","received_events_url":"https://api.github.com/users/nfsantos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-11T16:15:25Z","updated_at":"2015-10-22T10:19:31Z","closed_at":"2015-10-22T10:19:31Z","body":"Example query:\r\n`for (a <- set(3)) yield set 1`\r\n\r\nOutput:\r\n```\r\n17:11:08.517 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Uniquifier$ - Uniquifier input tree: for (a <- { 3 }) yield set 1\r\n17:11:08.544 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Uniquifier$ - Uniquifier output tree: for ($1 <- { 3 }) yield set 1\r\n17:11:08.545 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Normalizer$ - Normalizer input tree: for (a <- { 3 }) yield set 1\r\n17:11:08.561 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Normalizer$ - Applying normalizer rule 6\r\n17:11:08.562 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Normalizer$ - Applying normalizer rule 1\r\n17:11:08.571 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Normalizer$ - Normalizer output tree: for () yield set 1\r\n17:11:08.572 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Simplifier$ - Simplifier input tree: for () yield set 1\r\n17:11:08.596 [ScalaTest-run-running-MyTest] DEBUG raw.calculus.Simplifier$ - Simplifier output tree: for () yield set 1\r\n17:11:08.596 [ScalaTest-run-running-MyTest] DEBUG raw.algebra.Unnester$ - Unnester input tree: for () yield set 1\r\n\r\nraw.algebra.UnnesterError was thrown.\r\nInvalid output expression: Some(CalculusTerm(Comp(SetMonoid(),List(),IntConst(1)),List(),List(),EmptyTerm))\r\n\tat raw.algebra.Unnester$.raw$algebra$Unnester$$unnest$1(Unnester.scala:34)\r\n\tat raw.algebra.Unnester$.apply(Unnester.scala:269)\r\n\tat raw.Query$.unnest(Query.scala:38)\r\n\tat raw.Query$.apply(Query.scala:43)\r\n```"}}