Fix #4692 The reason of this bug is case-when statement may produce implicit CastExpr<SlotRef> as SelectListItem in analyze step. And these CastExpr<SlotRef> in SelectList will not be re-anlyze after rewrite step, which will result in the incorrect number of self-incrementing SlotDescriptor ID in resultExprs . So we need to reset the analysis state of CastExpr<SlotRef> in rewrite step.
# fe-common This module is used to store some common classes of other modules. # spark-dpp This module is Spark DPP program, used for Spark Load function. Depends: fe-common # fe-core This module is the main process module of FE. Depends: fe-common, spark-dpp