[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026698#comment-16026698 ] Hoss Man commented on SOLR-10753: - hmmm... ok, sorry for the noise ... not sure what happened. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026681#comment-16026681 ] Joel Bernstein commented on SOLR-10753: --- I committed a fix for this a little while back. It should be working fine in master now. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026636#comment-16026636 ] Hoss Man commented on SOLR-10753: - following fails reliably with NPE... {noformat} ant test -Dtestcase=StreamExpressionTest -Dtests.method=testArray -Dtests.seed=FF67716FF72EA807 -Dtests.slow=true -Dtests.locale=hu-HU -Dtests.timezone=PNT -Dtests.asserts=true -Dtests.file.encoding=UTF-8 ... [junit4] ERROR 0.16s | StreamExpressionTest.testArray <<< [junit4]> Throwable #1: java.lang.NullPointerException [junit4]>at __randomizedtesting.SeedInfo.seed([FF67716FF72EA807:5941390BC1769A68]:0) [junit4]>at org.apache.solr.client.solrj.io.stream.StreamExpressionTest.testArray(StreamExpressionTest.java:5751) [junit4]>at java.lang.Thread.run(Thread.java:745) {noformat} Seed doesn't seem to matter, same failure reproduces for this test method any way i try it. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026394#comment-16026394 ] Joel Bernstein commented on SOLR-10753: --- Maybe, but I think *cat* is maybe more intuitive then adding a parameter to merge. In SQL we'll be implementing union and unionall with these streams. But I think *list* is probably not the best name for the function. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026388#comment-16026388 ] Dennis Gove commented on SOLR-10753: Maybe merge should support and inOrder option which doesn't maintain sort between the streams. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026383#comment-16026383 ] Joel Bernstein commented on SOLR-10753: --- Merge is maintaining the sort order between the streams. List is concatenating the streams. I'd be happy changing *list* to *cat* and we could result the *list* function for different behavior. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026375#comment-16026375 ] Dennis Gove commented on SOLR-10753: If that's the case, isn't it the same as [merge|https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions#StreamingExpressions-merge]? > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026369#comment-16026369 ] Joel Bernstein commented on SOLR-10753: --- Also one thing about the current *list* is that it's a Streaming Expression. While the array us a Stream Evaluator. So the list is actually iterating each of it's list items and iterating them in order, basically concatenating Streams. The array is simply return a list on numbers. So they have very different behaviors. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026358#comment-16026358 ] Joel Bernstein commented on SOLR-10753: --- One thing that we could do is have a split between containers that work with Streams (list) and a containers that works with primitives (matrix, array). This is would be a fairly clean split. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026348#comment-16026348 ] Dennis Gove commented on SOLR-10753: The array itself isn't doing the vector math operations, though. Right? I'd think it'd be up to the function doing the math operation to validate its input, which means accepting a list that could be filled with anything is alright - cause it'll be validated anyway. I'm concerned that there'll end up being a lot of very similar things used for very different reasons. And users will be confused about when to use which. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026347#comment-16026347 ] ASF subversion and git services commented on SOLR-10753: Commit 81821b29ae4c507f02d09b29fcd0196db8647865 in lucene-solr's branch refs/heads/master from [~joel.bernstein] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=81821b2 ] SOLR-10753: Add array Stream Evaluator > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026345#comment-16026345 ] Joel Bernstein commented on SOLR-10753: --- I'm going to commit what I have for this, it's a pretty small piece of code. We can make it more generic with further work. Or we could always change the name from array to something more specific. I'll leave the ticket open for further work. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026331#comment-16026331 ] Joel Bernstein commented on SOLR-10753: --- The array is really just designed to support vector math operations. The next step is a matrix which wraps arrays to support matrix math operations. I think it makes sense to keep these two structures focused on vector and matrix math. The list is more just a general purpose container for Streaming Expressions. If the function name array is too general, perhaps we can just go with vector or vec? > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026326#comment-16026326 ] Dennis Gove commented on SOLR-10753: Could it just be a thing that returns an list of objects? Then it's up to the container to handle whatever they are. {code} list(1,2,3,4) list(1,add(2,3),if(gt(a,b),a,b)) list(1,"foo", search()) {code} Basically, a single function that creates a list/array of whatever. It is up to the containing function to decide if the list is valid for its purpose. For example, {code} add(1, list(2,3,4,5)) is the same as add(1,2,3,4,5) add(1, list("foo","bar")) is deemed invalid {code} And map with a list would allow things like {code} map(add(1,?), over=list(2,3,4,5)) would result in list(1 + 2, 1 + 3, 1 + 4, 1 + 5) {code} > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16026248#comment-16026248 ] Joel Bernstein commented on SOLR-10753: --- We've added a List which holds a list of Streaming Expressions. This returns a list/array of numbers or strings. I thought about using vector, but that seems to have a different meaning in math. I think in Lisp there is a make-array function. It seemed array was just the simplest name for the function. > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-10753) Add array Stream Evaluator
[ https://issues.apache.org/jira/browse/SOLR-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16025992#comment-16025992 ] Gethin James commented on SOLR-10753: - What about calling it list() or listOf(). You could also have mapOf ?? > Add array Stream Evaluator > -- > > Key: SOLR-10753 > URL: https://issues.apache.org/jira/browse/SOLR-10753 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) >Reporter: Joel Bernstein >Assignee: Joel Bernstein > Fix For: master (7.0) > > Attachments: SOLR-10753.patch > > > The *array* Stream Evaluator returns an array of numbers. It can contain > numbers and evaluators that return numbers. > Syntax: > {code} > a = array(1, 2, 3, 4, 5, 6) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org