Skip to content

Cast literals and params to eql_v1_encrypted #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 14, 2025

Conversation

tobyhede
Copy link
Contributor

Fix for SQL error when using ore or unique index terms:

  operator is not unique: eql_v1_encrypted > record

Encrypted parameters and literals are currently being wrapped into a ROW which create a value of type record.

This explicitly casts literals and params as ::jsonb::eql_v1_encrypted

@tobyhede tobyhede changed the base branch from main to feat/proxy-eql-v2-integration May 13, 2025 23:27
Copy link
Contributor

@freshtonic freshtonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tobyhede tobyhede force-pushed the cast-to-encrypted branch from 5170629 to 64b9ea7 Compare May 13, 2025 23:36
@tobyhede tobyhede force-pushed the cast-to-encrypted branch from 5eb1500 to f5be624 Compare May 14, 2025 01:06
@tobyhede tobyhede merged commit 3f77dc5 into feat/proxy-eql-v2-integration May 14, 2025
1 check failed
@tobyhede tobyhede deleted the cast-to-encrypted branch May 14, 2025 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants