Skip to content

Commit

Permalink
Fix pathman_join_pathlist_hook function to avoid fail on new assert in
Browse files Browse the repository at this point in the history
build_join_pathkeys postgres function.

Caused by:
- aa86129e19d7
  Support "Right Semi Join" plan shapes

Author: Alena Rybakina
  • Loading branch information
Sofia Kopikova committed Aug 15, 2024
1 parent 3c36220 commit 91ebe57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ pathman_join_pathlist_hook(PlannerInfo *root,
/* We don't support these join types (since inner will be parameterized) */
if (jointype == JOIN_FULL ||
jointype == JOIN_RIGHT ||
jointype == JOIN_UNIQUE_INNER)
jointype == JOIN_UNIQUE_INNER ||
jointype == JOIN_RIGHT_SEMI)
return;

/* Skip if inner table is not allowed to act as parent (e.g. FROM ONLY) */
Expand Down

0 comments on commit 91ebe57

Please sign in to comment.