Add support for GROUP BY
with cs_grouped_value_v1
#55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
GROUP BY
cs_grouped_value_v1
can be used in theSELECT
target list to return a single source ciphertext for each groupcs_grouped_value_v1
allows for using the source ciphertext in theSELECT
target list (sinceSELECT
ed items must either use an aggregrate function or appear in theGROUP BY
)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)