Potential mis-behavior?

10 views
Skip to first unread message

Jeromy Carriere

unread,
Apr 6, 2012, 5:51:37 PM4/6/12
to ql.io
a = [{"x":"x", "id":"1"}]
b = [{"id":"1", "y":"y1"},{"id":"1", "y":"y2"}]
return select a.id as a, b.y as y from a as a, b as b where a.id=b.id

produces

[
{
"a": "1",
"y": "y1"
}
]

should it not be:

[
{
"a": "1",
"y": "y1"
},
{
"a": "1",
"y": "y2"
}

]

Subbu Allamaraju

unread,
Apr 8, 2012, 12:17:30 AM4/8/12
to ql...@googlegroups.com
There is a bug in the join merge code.

I've a fix in a branch at

https://github.com/s3u/ql.io/commit/15c2fa0332c92f5a4393cca97d48eaf25b891bc7

Will submit a pull req once my current pull req is merged.

Subbu

Reply all
Reply to author
Forward
0 new messages