approx_contains
Whether a may be in the Bloom filter b (a sketch value, Binary, of a's type): never false for a value added, true for another at the filter's false-positive rate.
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses approx_contains, over the example tables.
from orders
filter approx_contains(customer, cast(status, to: binary))In a plan:
{
"args": [
{
"col": 1
},
{
"args": [
{
"col": 7
}
],
"fn": "cast",
"options": {
"to": {
"kind": "binary"
}
}
}
],
"fn": "approx_contains"
}