xy720 opened a new pull request #4693: URL: https://github.com/apache/incubator-doris/pull/4693
## Proposed changes Fix #4692 The reason of this bug is case-when statement may produce a implicit CastExpr<SlotRef> in SelectListItem in analyze step. And these CastExpr<SlotRef> in SelectListItem will not be re-anlyze after rewrite step(case-when statement needs rewrite), which will result in the wrong number of self-incrementing SlotDescriptor ID . ## Types of changes What types of changes does your code introduce to Doris? _Put an `x` in the boxes that apply_ - [x] Bugfix (non-breaking change which fixes an issue) ## Checklist _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._ - [x] I have create an issue on (Fix #4692 ), and have described the bug/feature there in detail - [x] Compiling and unit tests pass locally with my changes - [x] I have added tests that prove my fix is effective or that my feature works ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
