On Thu, Sep 11, 2025 at 10:40 AM Tender Wang <tndrwang@gmail.com> wrote:
> Richard Guo <guofenglinux@gmail.com> 于2025年9月10日周三 21:29写道:
>> I'm wondering if this is the only case we've overlooked. How about
>> other Json-related expressions?
> Yeah, I have the same question. I tried my fix on json_object/json_arrayagg/json_objectagg.
> These returned the same results.
json_object is also represented as a JsonConstructorExpr.
json_arrayagg and json_objectagg are aggregates, so the subquery won't
be pulled up in the first place.
I tested JsonExpr, which is the representation of json_value,
json_query and json_exists. It seems that they could not produce
non-NULL output with a NULL input. So we are good on that front.
- Richard