Skip to content

Filtering by UUID using 'like' operators in Elide 6 #2529

Answered by aklish
Asky-GH asked this question in Q&A
Discussion options

You must be logged in to vote

I'm thinking about moving the validation logic for predicates to allow this. One unfortunate problem though is that there are really three different representations for a UUID - the client representation (String with hyphens), the in memory representation (a UUID object), and the database representation (String without hyphens). Elide does filtering potentially both in the database and in-memory. When doing 'like' style queries, the client filter will include hyphens which will work fine in-memory but not in the database. To leverage 'like' predicates, you would also have to override the database serialization of the UUID to include hyphens. Let me know if this is still useful.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Asky-GH
Comment options

Comment options

You must be logged in to vote
3 replies
@Asky-GH
Comment options

@aklish
Comment options

@Asky-GH
Comment options

Comment options

You must be logged in to vote
1 reply
@Asky-GH
Comment options

Comment options

You must be logged in to vote
1 reply
@Asky-GH
Comment options

Answer selected by Asky-GH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants