<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If I understand the meaning of “join” function correctly then from user perspective this behavior in Mistral and Yaqluator is a bug because we’re joining two collections similar to how it works in SQL so the correct result should be:<div class=""><br class=""></div><div class=""><div class="">[[1, 3], [2, 3]]</div><div class=""><br class=""></div><div class="">I.e. collection consisting of two collections where each element if the first one is combined with each element of the second one.</div><div class=""><br class=""></div><div class="">If so, we need to fix this in both Mistral and Yaqluator.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alex, Stan, do you agree?</div><div class=""><br class=""></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Renat Akhmerov</div><div class="">@Nokia</div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 28 Jun 2016, at 23:46, Elisha, Moshe (Nokia - IL) <<a href="mailto:moshe.elisha@nokia.com" class="">moshe.elisha@nokia.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;" class="">
<div class="">
<div style="font-family: Calibri, sans-serif;" class="">Hi,</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">Thank you for the kind words, Alexey.</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">I was able to reproduce your bug and I have also found the issue.</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">The problem is that we did not create the parser with the engine_options used in the yaql library by default when using the CLI.</div>
<div style="font-family: Calibri, sans-serif;" class="">Specifically, the "yaql.limitIterators" was missing… I am not sure that this settings should have this affect but maybe the Yaql guys can comment on that.</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">If we will change yaqluator to use this setting it will mean that yaqluator will not be consistent with Mistral because Mistral is using YAQL without this engine option (If I use your example in a workflow, Mistral
 returns exactly like the yaqluator returns)</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">Workflow:</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<blockquote style="font-family: Calibri, sans-serif; margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite">
<div class="">
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo; font-size: 9pt;" class="">---<br class=""><span style="color:#000080;font-weight:bold;" class="">version: </span><span style="color:#008000;font-weight:bold;" class="">'2.0'<br class=""></span><span style="color:#008000;font-weight:bold;" class=""><br class=""></span><span style="color:#000080;font-weight:bold;" class="">test_yaql:<br class=""></span><span style="color:#000080;font-weight:bold;" class="">  tasks:<br class=""></span><span style="color:#000080;font-weight:bold;" class="">    test_yaql:<br class=""></span><span style="color:#000080;font-weight:bold;" class="">      action: </span>std.noop<br class="">      <span style="color:#000080;font-weight:bold;" class="">publish:<br class=""></span><span style="color:#000080;font-weight:bold;" class="">        output_expr: </span><% [1,2].join([3], true, [$1, $2]) %><br class=""></pre>
</div>
</blockquote>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">Workflow result:</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div class="">
<div class=""><font face="Courier" class="">[root@s53-19 ~(keystone_admin)]# mistral task-get-published 01d2bce3-20d0-47b2-84f2-7bd1cb2bf9f7</font></div>
<div class=""><font face="Courier" class="">{</font></div>
<div class=""><font face="Courier" class="">    "output_expr": [</font></div>
<div class=""><font face="Courier" class="">        [</font></div>
<div class=""><font face="Courier" class="">            1,</font></div>
<div class=""><font face="Courier" class="">            3</font></div>
<div class=""><font face="Courier" class="">        ]</font></div>
<div class=""><font face="Courier" class="">    ]</font></div>
<div class=""><font face="Courier" class="">}</font></div>
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">As Matthews pointed out, the yaqluator is indeed OpenSource and contributions are welcomed.</div>
<div style="font-family: Calibri, sans-serif;" class="">
<div id="MAC_OUTLOOK_SIGNATURE" class=""></div>
</div>
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class="">[1] <a href="https://github.com/ALU-CloudBand/yaqluator/commit/e523dacdde716d200b5ed1015543d4c4680c98c2" class="">https://github.com/ALU-CloudBand/yaqluator/commit/e523dacdde716d200b5ed1015543d4c4680c98c2</a></div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<div style="font-family: Calibri, sans-serif;" class=""><br class="">
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif;" class="">
<div style="font-family: Calibri; font-size: 12pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight:bold" class="">From: </span>Dougal Matthews <<a href="mailto:dougal@redhat.com" class="">dougal@redhat.com</a>><br class="">
<span style="font-weight:bold" class="">Reply-To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>><br class="">
<span style="font-weight:bold" class="">Date: </span>Monday, 27 June 2016 at 16:44<br class="">
<span style="font-weight:bold" class="">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>><br class="">
<span style="font-weight:bold" class="">Subject: </span>Re: [openstack-dev] [mistral] [murano] [yaql] yaqluator bug<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">On 27 June 2016 at 14:30, Alexey Khivin <span dir="ltr" class="">
<<a href="mailto:akhivin@gmail.com" target="_blank" class="">akhivin@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
<div dir="ltr" class="">
<div class="">Hello, Moshe </div>
<div class=""><br class="">
</div>
<div class="">Tomorrow I discovered <a href="http://yaqluator.com/" target="_blank" class="">yaqluator.com</a> for myself! Thanks for the useful tool!</div>
<div class=""><br class="">
</div>
<div class="">But suddenly I was said that the expression </div>
<div class="">[1,2].join([3], true, [$1, $2]) </div>
<div class="">evaluated to [[1,3]] on the yaqluator</div>
<div class=""><br class="">
</div>
<div class="">A the same time this expression evaluated right when I using raw yaql interpreter.</div>
<div class=""><br class="">
</div>
<div class="">Could we fix this issue?</div>
<div class=""><br class="">
</div>
<div class="">By the way, don't you want to make yaqluator opensource? If you would transfer yaqluator to Openstack Foundation, then  community will be able to fix such kind of bugs</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">It looks like it is open source, there is a link in the footer: <a href="https://github.com/ALU-CloudBand/yaqluator" class="">
https://github.com/ALU-CloudBand/yaqluator</a><br class="">
</div>
<div class=""> <br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
<div dir="ltr" class="">
<div class=""><br class="">
</div>
<div class="">Thank you!</div>
<div class=""><span style="line-height:1.5" class="">Best regards, Alexey Khivin</span></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<br class="">
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org/?subject:unsubscribe" rel="noreferrer" target="_blank" class="">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</span>
</div>

__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>