Repository navigation
Commit 6b8c90b
committed
[test](fe) Fix score table type unit test
### What problem does this PR solve?
Issue Number: close #66547
Related PR: #66973
Problem Summary: The score table type unit test ran the complete rewrite pipeline on empty mock tables. Empty-relation pruning removed the OLAP scans before the late CheckScoreUsage rule ran, so the AGG_KEYS and merge-on-read UNIQUE_KEYS assertions incorrectly observed no exception. Apply CheckScoreUsage directly to the analyzed plan so the unit test targets the rule under test. Remove unrelated supported-table assertions that require the complete score optimization rule sequence and are covered by existing score tests.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- ./run-fe-ut.sh --run org.apache.doris.nereids.rules.analysis.CheckScoreTableTypeTest
- Behavior changed: No
- Does this need documentation: No1 parent 6749ee2 commit 6b8c90b
1 file changed
Lines changed: 3 additions & 16 deletions
File tree
- fe/fe-core/src/test/java/org/apache/doris/nereids/rules/analysis
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
| |||
64 | 56 | | |
65 | 57 | | |
66 | 58 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 59 | | |
74 | 60 | | |
75 | 61 | | |
| |||
78 | 64 | | |
79 | 65 | | |
80 | 66 | | |
81 | | - | |
| 67 | + | |
| 68 | + | |
82 | 69 | | |
83 | 70 | | |
0 commit comments