sql: Fix: Don't do join identity elision when it would produce wrong results#35414
sql: Fix: Don't do join identity elision when it would produce wrong results#35414def- merged 1 commit intoMaterializeInc:mainfrom
Conversation
|
Thanks for opening this PR! Here are a few tips to help make the review process smooth for everyone. PR title guidelines
Pre-merge checklist
|
mgree
left a comment
There was a problem hiding this comment.
Tiny style question/suggestion. Looks good to me!
How did you find this?
|
I'm doing something very similar to @aljoscha (see #skunkworks) to burn my remaining Claude tokens every week. My current prompt.md was:
Then I look for anything interesting in log.md and iterate from there. For the future we probably want some prompt like that running against each PR before merging, but there are still lots of false positives, so I wouldn't want to directly subject our developers to that. Might be ok to send the potential issues to myself so I can triage and then report the actual ones. For now still a lot left to go through in the existing code. |
…results (MaterializeInc#35414) Introduced in MaterializeInc#9623. Leads to wrong results, see the attached SLT, which fails like this without the product code change: ``` SELECT * FROM (SELECT) AS sub LEFT JOIN empty_t ON true OutputFailure:test/sqllogictest/join-identity-elision.slt:35 expected: Values(["NULL", "NULL"]) actually: Values([]) actual raw: [] ---- SELECT * FROM empty_t RIGHT JOIN (SELECT) AS sub ON true OutputFailure:test/sqllogictest/join-identity-elision.slt:50 expected: Values(["NULL", "NULL"]) actually: Values([]) actual raw: [] ---- SELECT * FROM (SELECT) AS sub FULL JOIN empty_t ON true OutputFailure:test/sqllogictest/join-identity-elision.slt:58 expected: Values(["NULL", "NULL"]) actually: Values([]) actual raw: [] ---- SELECT * FROM empty_t FULL JOIN (SELECT) AS sub ON true OutputFailure:test/sqllogictest/join-identity-elision.slt:66 expected: Values(["NULL", "NULL"]) actually: Values([]) actual raw: [] ---- FAIL: output-failure=4 success=5 total=9 ```
Introduced in #9623. Leads to wrong results, see the attached SLT, which fails like this without the product code change: