morningman opened a new issue #4839: URL: https://github.com/apache/incubator-doris/issues/4839
**Describe the bug** Create view failed with error: "failed to init view stmt" **To Reproduce** create a view with some complex select stmt such as union and join and group by. **Why** This is because the `toSql()` method of SlotRef will return like "<slot 20> col as alias", if that SlotRef is analyzed. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org