{"action":"created","issue":{"url":"https://api.github.com/repos/quasar-analytics/quasar/issues/1688","repository_url":"https://api.github.com/repos/quasar-analytics/quasar","labels_url":"https://api.github.com/repos/quasar-analytics/quasar/issues/1688/labels{/name}","comments_url":"https://api.github.com/repos/quasar-analytics/quasar/issues/1688/comments","events_url":"https://api.github.com/repos/quasar-analytics/quasar/issues/1688/events","html_url":"https://github.com/quasar-analytics/quasar/issues/1688","id":187778448,"number":1688,"title":"QScript missing constant array for `projectFromConcattedArray.test`","user":{"login":"drostron","id":318090,"avatar_url":"https://avatars.githubusercontent.com/u/318090?v=3","gravatar_id":"","url":"https://api.github.com/users/drostron","html_url":"https://github.com/drostron","followers_url":"https://api.github.com/users/drostron/followers","following_url":"https://api.github.com/users/drostron/following{/other_user}","gists_url":"https://api.github.com/users/drostron/gists{/gist_id}","starred_url":"https://api.github.com/users/drostron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drostron/subscriptions","organizations_url":"https://api.github.com/users/drostron/orgs","repos_url":"https://api.github.com/users/drostron/repos","events_url":"https://api.github.com/users/drostron/events{/privacy}","received_events_url":"https://api.github.com/users/drostron/received_events","type":"User","site_admin":false},"labels":[{"id":415720815,"url":"https://api.github.com/repos/quasar-analytics/quasar/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":430930425,"url":"https://api.github.com/repos/quasar-analytics/quasar/labels/QScript","name":"QScript","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/quasar-analytics/quasar/milestones/13","html_url":"https://github.com/quasar-analytics/quasar/milestones/ASAP","labels_url":"https://api.github.com/repos/quasar-analytics/quasar/milestones/13/labels","id":2077402,"number":13,"title":"ASAP","description":"","creator":{"login":"jdegoes","id":156745,"avatar_url":"https://avatars.githubusercontent.com/u/156745?v=3","gravatar_id":"","url":"https://api.github.com/users/jdegoes","html_url":"https://github.com/jdegoes","followers_url":"https://api.github.com/users/jdegoes/followers","following_url":"https://api.github.com/users/jdegoes/following{/other_user}","gists_url":"https://api.github.com/users/jdegoes/gists{/gist_id}","starred_url":"https://api.github.com/users/jdegoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdegoes/subscriptions","organizations_url":"https://api.github.com/users/jdegoes/orgs","repos_url":"https://api.github.com/users/jdegoes/repos","events_url":"https://api.github.com/users/jdegoes/events{/privacy}","received_events_url":"https://api.github.com/users/jdegoes/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":7,"state":"open","created_at":"2016-10-18T14:48:30Z","updated_at":"2016-11-07T17:53:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-11-07T17:41:10Z","updated_at":"2016-11-07T19:07:41Z","closed_at":null,"body":"While looking at enabling `projectFromConcattedArray.test` I noticed that `[1, 2]` is missing from the generated `QScript`.\r\n\r\nSQL²:\r\n```\r\nselect (loc || [1, 2])[1] from largeZips\r\n```\r\n\r\nlp:\r\n```Invoke(Take)\r\n├─ Invoke(Squash)\r\n│  ╰─ Invoke(MakeObject)\r\n│     ├─ Str(\"0\")\r\n│     ╰─ Let('__check0)\r\n│        ├─ Read(/quasar-test/largeZips.json)\r\n│        ╰─ Typecheck(Obj(Map[], Some(Top)))\r\n│           ├─ Free('__check0)\r\n│           ├─ Let('__check1)\r\n│           │  ├─ ObjectProject('__check0{\"loc\"})\r\n│           │  ╰─ Typecheck(FlexArr(0, None, Top))\r\n│           │     ├─ Free('__check1)\r\n│           │     ├─ Invoke(ArrayProject)\r\n│           │     │  ├─ Invoke(ArrayConcat)\r\n│           │     │  │  ├─ Free('__check1)\r\n│           │     │  │  ╰─ Constant(Arr(List(Int(1), Int(2))))\r\n│           │     │  ╰─ Constant(Int(1))\r\n│           │     ╰─ Constant(NA)\r\n│           ╰─ Constant(NA)\r\n╰─ Constant(Int(11))\r\n```\r\n\r\nQScript:\r\n```Subset(Take)\r\n├─ Unreferenced\r\n├─ From\r\n│  ╰─ LeftShift\r\n│     ├─ Read(/quasar-test/largeZips.json)\r\n│     ├─ Struct\r\n│     │  ╰─ ○\r\n│     ╰─ Repair\r\n│        ╰─ MakeMap\r\n│           ├─ Constant(Str(0))\r\n│           ╰─ Guard\r\n│              ├─ RightSide\r\n│              ├─ Type(Obj(Map[], Some(Top)))\r\n│              ├─ Guard\r\n│              │  ├─ ProjectField\r\n│              │  │  ├─ RightSide\r\n│              │  │  ╰─ Constant(Str(loc))\r\n│              │  ├─ Type(FlexArr(0, None, Top))\r\n│              │  ├─ Constant(Int(2))\r\n│              │  ╰─ Undefined\r\n│              ╰─ Undefined\r\n╰─ Count\r\n   ╰─ Map\r\n      ├─ Unreferenced\r\n      ╰─ Constant(Int(11))\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/quasar-analytics/quasar/issues/comments/258931034","html_url":"https://github.com/quasar-analytics/quasar/issues/1688#issuecomment-258931034","issue_url":"https://api.github.com/repos/quasar-analytics/quasar/issues/1688","id":258931034,"user":{"login":"alissapajer","id":1088100,"avatar_url":"https://avatars.githubusercontent.com/u/1088100?v=3","gravatar_id":"","url":"https://api.github.com/users/alissapajer","html_url":"https://github.com/alissapajer","followers_url":"https://api.github.com/users/alissapajer/followers","following_url":"https://api.github.com/users/alissapajer/following{/other_user}","gists_url":"https://api.github.com/users/alissapajer/gists{/gist_id}","starred_url":"https://api.github.com/users/alissapajer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alissapajer/subscriptions","organizations_url":"https://api.github.com/users/alissapajer/orgs","repos_url":"https://api.github.com/users/alissapajer/repos","events_url":"https://api.github.com/users/alissapajer/events{/privacy}","received_events_url":"https://api.github.com/users/alissapajer/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T19:07:41Z","updated_at":"2016-11-07T19:07:41Z","body":"Hm, yeah, It looks like the array concat is getting lost in the QScript compile. To confirm the indexing, we could change `(loc || [1, 2])` to `(loc || [11, 13])` and then verify we get a result of `13`."}}
{"actor":{"display_login":"alissapajer"}}