[ https://issues.apache.org/jira/browse/SOLR-13560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16867175#comment-16867175 ]
ASF subversion and git services commented on SOLR-13560: -------------------------------------------------------- Commit ecd702bf4a00fcc2215c815b81d7080724e2ee78 in lucene-solr's branch refs/heads/branch_8x from Joel Bernstein [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=ecd702b ] SOLR-13560: Add isNull and notNull Stream Evaluators > Add isNull and notNull Stream Evaluators > ---------------------------------------- > > Key: SOLR-13560 > URL: https://issues.apache.org/jira/browse/SOLR-13560 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Joel Bernstein > Priority: Major > Attachments: SOLR-13560.patch > > > This ticket adds two Stream Evaluators for testing for null values in Tuples. > These are much needed functions as currently null values are not possible to > detect with the *eq* Stream Evaluator because null values are evaluated to > the parameter name, rather then null. This change was made to support String > literal parameters without quotes. > The isNull and notNull Stream Evaluators properly detect nulls so they can be > used to filter tuples in a *having* expression or replace nulls in a *select* > expression. > Sample syntax for null filtering: > {code:java} > having(random(testapp, q="*:*", fl="response_d", rows="20000"), > notNull(response_d)){code} > Sample syntax for null filterring: > {code:java} > select(random(testapp, q="*:*", fl="id, response_d", rows="20000"), > id, > if(isNull(response_d),-1, response_d) as response_d){code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org