This is an automated email from the ASF dual-hosted git repository.

suneet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 7862079  add minimal documentation for expression filters (#11045)
7862079 is described below

commit 786207995eedd177ed354e916c1d1721f53f9a71
Author: Cameron Teasdale <[email protected]>
AuthorDate: Wed Apr 7 19:58:28 2021 -0400

    add minimal documentation for expression filters (#11045)
    
    * add minimal documentation for expression filters
    
    * Update docs/querying/filters.md
    
    Co-authored-by: Clint Wylie <[email protected]>
    
    * Update docs/querying/filters.md
    
    Co-authored-by: sthetland <[email protected]>
    
    * Update docs/querying/filters.md
    
    Co-authored-by: Alejandro Lujan <[email protected]>
    
    * Update docs/querying/filters.md
    
    Co-authored-by: Alejandro Lujan <[email protected]>
    
    Co-authored-by: Clint Wylie <[email protected]>
    Co-authored-by: sthetland <[email protected]>
    Co-authored-by: Alejandro Lujan <[email protected]>
---
 docs/querying/filters.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/docs/querying/filters.md b/docs/querying/filters.md
index 4e8c17b..9811008 100644
--- a/docs/querying/filters.md
+++ b/docs/querying/filters.md
@@ -531,3 +531,18 @@ The true filter is a filter which matches all values.  It 
can be used to tempora
 
 { "type" : "true" }
 ```
+
+### Expression Filter
+The expression filter allows for the implementation of arbitrary conditions, 
leveraging the Druid expression system. 
+
+This filter allows for more flexibility, but it might be less performant than 
a combination of the other filters on this page due to the fact that not all 
filter optimizations are in place yet.
+
+```json
+
+{ 
+    "type" : "expression" ,
+    "expression" : "((product_type == 42) && (!is_deleted))"
+}
+```
+
+See the [Druid expression system](../misc/math-expr.md) for more details.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to