Skip to content
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

Invalid UUIDs are not rejected #3127

Closed
sapalli2989 opened this issue Mar 24, 2024 · 0 comments · Fixed by #3130
Closed

Invalid UUIDs are not rejected #3127

sapalli2989 opened this issue Mar 24, 2024 · 0 comments · Fixed by #3130
Assignees
Labels
bug Something isn't working

Comments

@sapalli2989
Copy link
Contributor

sapalli2989 commented Mar 24, 2024

It seems missing digits for UUID are currently filled up with zeros and - delimiters don't matter:

kuzu> WITH UUID("1") as id RETURN id;
----------------------------------------
| id                                   |
----------------------------------------
| 00000000-0000-0001-0000-000000000000 |
----------------------------------------
(1 tuple)
(1 column)

kuzu> WITH UUID("11111111111111111") as id RETURN id;
----------------------------------------
| id                                   |
----------------------------------------
| 11111111-1111-1111-0000-000000000001 |
----------------------------------------
(1 tuple)
(1 column)

Please don't try to convert wrong UUIDs to something valid (also for testing purposes). Instead I'd suggest to just fail hard here.

@sapalli2989 sapalli2989 changed the title Add validation for UUID / reject wrong UUIDs Validation for UUID fails / reject wrong UUIDs Mar 24, 2024
@sapalli2989 sapalli2989 changed the title Validation for UUID fails / reject wrong UUIDs Invalid UUIDs are not rejected Mar 24, 2024
@ray6080 ray6080 added the bug Something isn't working label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants