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:
- Create three tables with foreign key relationships
- Run a query with multiple JOINs
- Observe duplicate rows in the output
Environment: OpenSearch SQL plugin latest version