Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OOME with nested derived tables #3410

@katzyn

Description

@katzyn

Found by TestRandomCompare on CI:

create table test(x0 int, x1 int);

select * from
    (select * from
        (select * from
            (select * from
                (select * from
                    (select * from
                        (select * from
                            (select * from
                                (select * from test as t399 where x0<1 and x0>=x0 or null<=-1) as t398
                            where -1 is not distinct from -1) as t397
                        where 3 is distinct from 2) as t396
                    where null is distinct from -1) as t395
                where 3 is distinct from -1 or null=x1) as t394
            where x0 is distinct from null) as t393
        where x0>=null and -1<=1 and 3 is not distinct from -1) as t392
    where -1>=3) as t391
where -1 is distinct from -1 or 2 is distinct from x0;

This is a regression caused by 69df6d8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions