Repository navigation
Commit 0f743ab
[fix](fe) Fix fast insert into values after IVM stream guard (apache#24)
### What problem does this PR solve?
Issue Number: N/A
Related PR: apache#21
Problem Summary: Fast INSERT INTO VALUES planning does not retain an analyzed plan. The IVM internal stream guard added by the related PR dereferenced that nullable plan and caused ordinary VALUES inserts to fail with a null pointer. Skip stream traversal when the analyzed plan is absent; this is safe because the fast VALUES path only reads inline constants and cannot contain a table stream scan. Add focused unit coverage for the fast planning path while retaining the existing internal stream rejection coverage.
### Release note
Fixed an issue where INSERT INTO VALUES could fail with a null pointer after IVM internal stream validation.
### Check List (For Author)
- Test: Unit Test
- ./run-fe-ut.sh --run org.apache.doris.nereids.trees.plans.commands.insert.InsertIntoTableCommandTableStreamTest
- mvn clean install -DskipTests -Dmaven.build.cache.enabled=false
- Behavior changed: No
- Does this need documentation: No1 parent 69fe801 commit 0f743ab
2 files changed
Lines changed: 24 additions & 1 deletion
File tree
- fe/fe-core/src
- main/java/org/apache/doris/nereids/trees/plans/commands/insert
- test/java/org/apache/doris/nereids/trees/plans/commands/insert
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
213 | 235 | | |
214 | 236 | | |
215 | 237 | | |
| |||
0 commit comments