Repository navigation
Commit a3ed51d
committed
fix: raise when binding starts-with with an out-of-range literal
LiteralPredicate.bind folded AboveMax/BelowMin literals to AlwaysTrue or
AlwaysFalse for the comparison operations, but starts-with and
not-starts-with fell through and built a bound predicate wrapping the
sentinel itself, which then crashed evaluators. Raise a ValueError at
bind time instead, mirroring the Java implementation, which throws for
operations that have no defined fold.
Signed-off-by: Shahzeb Ali <126076773+Shahzeb-DataEngineer@users.noreply.github.com>1 parent e3fbd94 commit a3ed51d
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| 918 | + | |
| 919 | + | |
918 | 920 | | |
919 | 921 | | |
920 | 922 | | |
921 | 923 | | |
922 | 924 | | |
| 925 | + | |
| 926 | + | |
923 | 927 | | |
924 | 928 | | |
925 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
298 | 312 | | |
299 | 313 | | |
300 | 314 | | |
| |||
0 commit comments