Skip to content

[Enhancement] support create or replace view  #20131

@yiguolei

Description

@yiguolei

Search before asking

  • I had searched in the issues and found no similar issues.

Description

create view lineorder_view as select lo_linenumber from line_order;

then if user want to update the view, it may use create or replace function, like in mysql https://dev.mysql.com/doc/refman/8.0/en/create-view.html#:~:text=The%20CREATE%20VIEW%20statement%20creates,OR%20REPLACE%20VIEW%20replaces%20it.

create or replace view lineorder_view as select lo_linenumber,lo_commitdate from line_order;

Currently, doris does not support it.

Solution

Add support for create or replace view grammer.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions