model-writtenrun 1871 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Runyuan He reported that JSON_ARRAY with a subquery column reference returned [3, 2] instead of SQL NULL beneath an unmatched RIGHT JOIN #1.
- Tender Wang reproduced the failure and traced it to reduced PlaceHolderVar insertion #2, then supplied an inline fix marking JsonConstructorExpr as non-strict #3; Richard Guo accepted the fix while asking whether other JSON expressions needed similar treatment #4.
- Tender Wang attached the fix with tests for JSON constructors and aggregates, also reporting incorrect JSON_OBJECT behavior on PostgreSQL 16.6 #5; Richard Guo explained that JSON_OBJECT shares JsonConstructorExpr and that aggregate subqueries cannot be pulled up #6.
- Tom Lane urged examining the implementation rather than relying on tests #7, and Tender Wang identified ExecInitJsonExpr's explicit NULL-input short circuit #8; Richard Guo accepted that explanation and chose to address JsonConstructorExpr while leaving any further non-strictness omissions for separate fixes #9.
- Richard Guo committed b63a822452 from #5, preserving the optimizer fix while replacing excessive test output and irrelevant aggregate cases with a compact regression test, adding the commit message, and backpatching through PostgreSQL 16 #10.
- The thread ended with Tender Wang approving the improved tests and thanking Richard Guo for committing, with no further patch revision pending #11.