You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds support for decrypting encrypted columns included in the
`GROUP BY` clause by using a new aggregate function, `cs_grouped_value_v1`.
How it works:
- An ORE term (either in an ORE or SteVec index) can be used in `GROUP BY`
- `cs_grouped_value_v1` can be used in the `SELECT` target list to return a
single source ciphertext for each group
- the ORE index is used for the equality check needed for grouping
- `cs_grouped_value_v1` allows for using the source ciphertext in the `SELECT`
target list (since `SELECT`ed items must either use an aggregrate function or
appear in the `GROUP BY`)
- note that including the source ciphertext in the `GROUP BY` statement wouldn't
work because source ciphertexts are non-deterministic and don't support
comparison operations (that's what ORE indexes are for)
0 commit comments