<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="">Stan, thanks for clarification. What’s the latest stable version that we’re supposed to use? global-requirements.txt has <span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">yaql>=1.1.0, I</span> wonder if it’s correct.<div class=""><br class=""><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 05 Jul 2016, at 12:12, Stan Lagun <<a href="mailto:slagun@mirantis.com" class="">slagun@mirantis.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi!<div class=""><br class=""></div><div class="">The issue with join is just a yaql bug that is already fixed. The problem with yaqluator is that it doesn't use the latest yaql library.</div><div class=""><br class=""></div><div class="">Another problem is that it does't sets options correctly. As a result it is possible to bring the site down with a query that produces endless collection</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><span style="border-collapse: separate; font-family: 'Times New Roman'; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: inherit;" class=""><span style="font-family:arial;font-size:small" class="">Sincerely yours,<br class="">Stan Lagun<br class="">Principal Software Engineer @ Mirantis</span></span><br class=""><span style="border-collapse: separate; font-family: 'Times New Roman'; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; font-size: inherit;" class=""><span style="font-family:arial;font-size:small" class=""><br class=""><a href="mailto:slagun@mirantis.com" target="_blank" class=""></a></span></span></div></div></div>
<br class=""><div class="gmail_quote">On Tue, Jun 28, 2016 at 9:46 AM, Elisha, Moshe (Nokia - IL) <span dir="ltr" class=""><<a href="mailto:moshe.elisha@nokia.com" target="_blank" class="">moshe.elisha@nokia.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap: break-word; 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="">
<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 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" target="_blank" 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 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" target="_blank" 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" target="_blank" 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" target="_blank" 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=""><div class="h5">
<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">
<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" target="_blank" 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">
<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>
</div></div></span>
</div>

</blockquote></div><br class=""></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>