Repository navigation
Commit b7fa5a6
committed
test(eql): run the element predicate over Stack Encrypt documents in PostgreSQL
Seals contact lists with the JSON index, derives `element_match` through
a data plan over eql-bindings' target table, and queries the column:
two contacts each holding half of the predicate are returned by the
superset query (`@>` and an ordering over `json_tree_path_query`) and
not by `json_tree_element_match`; one contact holding both is returned
by both; a folded spelling ties under the element predicate and not
under exact containment; a bound below the longest array raises; and
`json_tree_subtree` equals the indexed read without `k` under every
budget, the sealed-root fallback at `k = 0`.
The rest of the SQL's contract is pinned over the same documents and
operands: the operand domain's CHECK member by member, over a derived
operand and its parts; one element must satisfy every member under the
sealed root and the open one; each bound, `between` and `eq` compare as
the entry operators do, and a field with no ordering term or no field
satisfies none; a probe's hit raises, including a token whose node was
moved to the element's selector; and `k` is the place of the token
whose node a row sits in. EQL tests run over real encrypted data, and
the SQLx suite has no way to produce a JSON tree document, so these
live here.
Refs #14401 parent 26294a8 commit b7fa5a6
2 files changed
Lines changed: 1042 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
| |||
0 commit comments