Skip to content

JOIN query ignores WHERE filter and returns all rows #10

Description

@qianheng-aws

Issue

SQL JOIN queries are not respecting WHERE clause filters. All rows from the joined tables are returned regardless of the filter condition.

Steps to reproduce

SELECT * FROM orders o JOIN customers c ON o.customer_id = c.id WHERE c.country = 'US'

Returns customers from all countries, not just US.

Expected

Only rows matching the WHERE condition should be in the result set.

Environment

OpenSearch 2.17, SQL plugin 2.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions