Skip to content

Panic on SELECT ... WHERE ... OR #1868

Closed

Description

@nicktobey

Reproduction script:

CREATE TABLE test (pk1 int primary key, i int);
select * from test where pk1 = 1 or i = 1;

The only requirement seems to be that the first filter matches an index and the second one doesn't.

Swapping the order of the filters (select * from test where i = 1 or pk1 = 1;) does NOT panic.

Activity

  1. codeaucafe commented on Dec 20, 2025

    @codeaucafe
    Contributor

    I'm gonna take a stab at this if thats cool

  2. added a commit that references this issue on Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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