Cannot generate regex if there are too many possibilities #1127
Labels
bug
Something isn't working
resolution:resolved
The issue was fixed, the question was answered, etc.
Environment Details
Error Description
Sometimes, the regex string for my primary key column might leave a lot of possibilities. For example the string
"[a-z0-9]{32}"
encapsulates 36^32 possible strings.If there are too many possibilities, it seems that there is an overflow in the computation. Our regex generator thinks that there are 0 possibilities and then produces an error.
Steps to reproduce
If you try this in the SDV library, this shows up as a
ValueError
:Output
Regex Utils: You can see that our regex utility function is returning that there are 0 possibilities for this regex. This may be the root cause.
Output
The text was updated successfully, but these errors were encountered: