doris
doris copied to clipboard
[Fix](planner)fix cast error when query a view with cast to string-like type.
Proposed changes
Issue Number: close #xxx
Problem summary
fix bug:
create table t ( id int, k1 int ) distributed by hash(id) buckets 4 properties(...)
create view v1 as select cast(k1 as varchar) k1 from t1 select k1 from v1
which will cause 'Failed analysis when expr subsitution' because inlineViewDef always change string-like type to char.
Checklist(Required)
- [ ] Does it affect the original behavior
- [ ] Has unit tests been added
- [ ] Has document been added or modified
- [ ] Does it need to update dependencies
- [x] Is this PR support rollback (If NO, please explain WHY)
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...
PR approved by at least one committer and no changes requested.
PR approved by anyone and no changes requested.
run buildall
run buildall
run fe ut
run buildall
PR approved by at least one committer and no changes requested.