Repository navigation
Commit f8a7eac
committed
REGEXP_SUBSTR computed: raise for a pattern matching empty text
A start at or past the end leaves empty text, where DuckDB finds an
empty match ('' for x*) and Snowflake's result is unrecorded: the
receipts cover p = length + 1 and beyond only with a pattern that cannot
match empty text. Such a pattern now raises regexp_pattern_syntax on
this path, as REGEXP_COUNT and REGEXP_INSTR already do. The 15 recorded
cases still match; the other 12 REGEXP_SUBSTR case files are unchanged
(178 cases, 0 failed).1 parent 5840b2d commit f8a7eac
2 files changed
Lines changed: 4 additions & 2 deletions
File tree
- crates/sqlquack-rules/src
- catalogue
- conversion/_helpers/expressions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
1065 | | - | |
| 1065 | + | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| 675 | + | |
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
678 | | - | |
| 679 | + | |
| 680 | + | |
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| |||
0 commit comments