[Bug](materialized-view) fix analyze where clause failed on mv (#39061) (#39209)

## Proposed changes
pick from #39061
fix analyze where clause failed on mv
do not analyze slot after replaceSlot to avoid duplicate columns in desc
This commit is contained in:
Pxl
2024-08-13 16:08:20 +08:00
committed by GitHub
parent 9fb103e979
commit 33220109f7
3 changed files with 69 additions and 0 deletions

View File

@ -694,6 +694,11 @@ public class SlotRef extends Expr {
@Override
public void replaceSlot(TupleDescriptor tuple) {
// do not analyze slot after replaceSlot to avoid duplicate columns in desc
desc = tuple.getColumnSlot(col);
type = desc.getType();
if (!isAnalyzed) {
analysisDone();
}
}
}