On 2023-08-22 01:54, Andy Fan wrote:
> After we label it, we will get error like this:
>
> select (a->'a')::int4 from m;
> ERROR: cannot display a value of type internal
Without looking in depth right now, I would double-check
what relabel node is being applied at the result. The idea,
of course, was to relabel the result as the expected result
type, not internal.
(Or, as in the restructuring suggested earlier, to use a
finish function whose return type is already as expected,
and needs no relabeling.)
Regards,
-Chap