Skip to content

optimize_projections rule breaks some view operation #8978

@lewiszlw

Description

@lewiszlw

Describe the bug

image
commit: ee7ab0b
If comment out optimize_projections rule, then works fine.

To Reproduce

create table users (id int, name varchar);
insert into users values (1, 'Tom');
create view v as select count(id) from users;
select count(1) from v;

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions