Skip to content

Commit e2d34cb

Browse files
committed
[test](regression) Correct empty regex golden results
### What problem does this PR solve? Related PR: #67538 Problem Summary: The new gram regression golden expected an empty regular expression to match no rows. Doris REGEXP and RLIKE match every non-null string for this pattern, so the P0 suite failed at regexp_23_idx_true before it could finish. Regenerate the golden through the regression runner. Both index modes now expect the same matches for REGEXP, RLIKE, NOT REGEXP, and the compound predicate. ### Release note None ### Check List (For Author) - Test - [x] Regression test: test_gram_regexp_like passed with generated output and again with normal golden comparison. - [x] Unit Test: FunctionLikeTest.regexp_empty_constant_pattern passed under ASAN. - Behavior changed: - [x] No. Only the expected regression output changed. - Does this need documentation? - [x] No.
1 parent fb488b9 commit e2d34cb

1 file changed

Lines changed: 70 additions & 4 deletions

File tree

‎regression-test/data/inverted_index_p0/gram/test_gram_regexp_like.out‎

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -699,10 +699,26 @@
699699
8
700700

701701
-- !regexp_23_idx_true --
702+
1
703+
10
704+
11
705+
12
706+
13
707+
14
708+
15
709+
16
710+
17
711+
18
712+
19
713+
2
714+
3
715+
4
716+
6
717+
7
718+
8
719+
9
702720

703721
-- !rlike_23_idx_true --
704-
705-
-- !notregexp_23_idx_true --
706722
1
707723
10
708724
11
@@ -722,7 +738,24 @@
722738
8
723739
9
724740

741+
-- !notregexp_23_idx_true --
742+
725743
-- !regexp_and_23_idx_true --
744+
10
745+
11
746+
12
747+
13
748+
14
749+
15
750+
16
751+
17
752+
18
753+
19
754+
4
755+
6
756+
7
757+
8
758+
9
726759

727760
-- !regexp_24_idx_true --
728761
14
@@ -1843,10 +1876,26 @@
18431876
8
18441877

18451878
-- !regexp_23_idx_false --
1879+
1
1880+
10
1881+
11
1882+
12
1883+
13
1884+
14
1885+
15
1886+
16
1887+
17
1888+
18
1889+
19
1890+
2
1891+
3
1892+
4
1893+
6
1894+
7
1895+
8
1896+
9
18461897

18471898
-- !rlike_23_idx_false --
1848-
1849-
-- !notregexp_23_idx_false --
18501899
1
18511900
10
18521901
11
@@ -1866,7 +1915,24 @@
18661915
8
18671916
9
18681917

1918+
-- !notregexp_23_idx_false --
1919+
18691920
-- !regexp_and_23_idx_false --
1921+
10
1922+
11
1923+
12
1924+
13
1925+
14
1926+
15
1927+
16
1928+
17
1929+
18
1930+
19
1931+
4
1932+
6
1933+
7
1934+
8
1935+
9
18701936

18711937
-- !regexp_24_idx_false --
18721938
14

0 commit comments

Comments
 (0)