Add test coverage for index reuse optimization where multiple join operations share the same index (joining different tables on same column). Verify that the optimization works correctly and the results remain consistent.
Test Plan:
- Generate test data with multiple tables that share join columns
- Create multiple views that join different tables on the same indexed column
- Combine views with UNION ALL to verify consistency
- Test behavior with SQLite to validate results