model-writtenrun 1603 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- jian he reported that an invalid SQL/JSON path type produced a cache lookup failure instead of a datatype error and supplied a fix with two regression tests in #1; he also raised explicit casts in JSON_TABLE path clauses as a separate issue.
- Kirill Reshke confirmed that the fix worked and recommended preserving the original expression through a separate coercion-result variable in #2; for JSON_TABLE casts, he discussed parser limitations and suggested clearer error reporting.
- jian he adopted the separate result variable in #3, and Amit Langote refined its name and moved type/location variables into the error block in #4, while inviting a separate patch for the JSON_TABLE issue.
- jian he approved Amit's revision in #5, and Kirill Reshke also approved it in #6.
- Amit Langote committed b5511fed50 from #4, with backpatches through PostgreSQL 17, and explained in #7 that he moved type/location variables outside the error block to reuse their values during coercion; the reported cache lookup bug was resolved, while the separate JSON_TABLE proposal remained unimplemented in this thread.