Skip to content

Nested JOIN produces duplicate rows in query output #15

@qianheng-aws

Description

@qianheng-aws

I'm experiencing an issue where nested JOIN operations produce duplicate rows.

SELECT a.*, b.name, c.value FROM a JOIN b ON a.id = b.a_id JOIN c ON b.id = c.b_id

The output contains repeated rows. This seems like a bug in the JOIN execution logic.

Steps to reproduce:

  1. Create three tables with foreign key relationships
  2. Run a query with multiple JOINs
  3. Observe duplicate rows in the output

Environment: OpenSearch SQL plugin latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions