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

Bug Report: UUID() function is not correctly marked as non-constant #14050

Closed
dbussink opened this issue Sep 20, 2023 · 0 comments · Fixed by #14051
Closed

Bug Report: UUID() function is not correctly marked as non-constant #14050

dbussink opened this issue Sep 20, 2023 · 0 comments · Fixed by #14051
Labels
Component: Evalengine changes to the evaluation engine Type: Bug

Comments

@dbussink
Copy link
Contributor

Overview of the Issue

The evalengine UUID() function is not marked properly as non-constant, resulting in the value being cached / the invocation being optimized away so it doesn't return a new value on each invocation:

Reproduction Steps

mysql> select uuid();
+--------------------------------------+
| uuid()                               |
+--------------------------------------+
| 7881fcfa-57b2-11ee-b78d-acde48001122 |
+--------------------------------------+
1 row in set (0.00 sec)

mysql> select uuid();
+--------------------------------------+
| uuid()                               |
+--------------------------------------+
| 793595b2-57b2-11ee-b78d-acde48001122 |
+--------------------------------------+
1 row in set (0.00 sec)

mysql> select uuid();
+--------------------------------------+
| uuid()                               |
+--------------------------------------+
| 793595b2-57b2-11ee-b78d-acde48001122 |
+--------------------------------------+
1 row in set (0.00 sec)

Binary Version

Broken since https://github.com/vitessio/vitess/pull/13097

Operating System and Environment details

-

Log Fragments

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Evalengine changes to the evaluation engine Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant