Skip to content

[Bug] Create view failed #4839

@morningman

Description

@morningman

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.

Metadata

Metadata

Assignees

Labels

kind/fixCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions