[
https://issues.apache.org/jira/browse/SOLR-13560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16867173#comment-16867173
]
ASF subversion and git services commented on SOLR-13560:
--------------------------------------------------------
Commit 8a35088947321681b8850d2908a4d9bc83d960f6 in lucene-solr's branch
refs/heads/master from Joel Bernstein
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8a35088 ]
SOLR-13560: Fix precommit
> 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: [email protected]
For additional commands, e-mail: [email protected]