Hi,

On Mon, Sep 1, 2025 at 9:26 AM Chao Li <[email protected]> wrote:
>
>
>
> On Aug 30, 2025, at 14:09, Tender Wang <[email protected]> wrote:
>
> Hi,
>
> While debugging the HashJoin codes, I noticed below codes in 
> ExecHashJoinImpl():
>
> elog(ERROR, "unrecognized hashjoin state: %d",
> (int) node->hj_JoinState);
>
> The type of hj_JoinState is already int, so the cast seems unnecessary.
> So I remove it in the attached patch.
>
> --
> Thanks,
> Tender Wang
> <0001-Fix-an-unnecessary-cast-calling-elog-in-ExecHashJoin.patch>
>
>
> Yes, hj_JoinState is of type int, so the type cast to int is not needed. The 
> change looks good to me.
>

LGTM.

Best,
Xuneng


Reply via email to