RegexGenerator
fails to generate values if there are too many possibilities
#623
Labels
Milestone
RegexGenerator
fails to generate values if there are too many possibilities
#623
Environment Details
Error Description
Sometimes, the provided regex format in
RegexGenerator
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. OurRegexGenerator
thinks that there are 0 possibilities and then produces an error whenenforce_uniqueness=True
.Note that this problem used to exist in the SDV (see SDV issue 1127). However as part of SDV 1.0, we moved the regex logic to RDT so the issue is now in RDT library.
Steps to reproduce
Output:
Stack Trace
The text was updated successfully, but these errors were encountered: