Skip to content

Commit

Permalink
Merge 4_X changes back to 5_X (#479)
Browse files Browse the repository at this point in the history
This is a cherry-pick PR which merges newer 4_X engine commits into 5_X.
Task: No-JIRA
Signed-off-by- Roshan Kanwar <rskanwar.amazon.com>
  • Loading branch information
roshan0708 authored Nov 25, 2024
1 parent 6a6632a commit e77fb10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/create-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ fi

# check the tag format (need manual update when necessary)
format=BABEL_
if ! [[ "$new" =~ "$format"[0-9]_[0-9]_[0-9]__"PG"_[0-9]+_[0-9] ]]
if ! [[ "$new" =~ "$format"[0-9]_[0-9]+_[0-9]__"PG"_[0-9]+_[0-9]+ ]]
then
echo "Error: Invalid tag prefix, expected: ${format}<digit>_<digit>_<digit>__PG_<number>_<digit>"
echo "Error: Invalid tag prefix, expected: ${format}<digit>_<number>_<digit>__PG_<number>_<number>"
exit 1
fi

Expand Down
4 changes: 4 additions & 0 deletions src/backend/optimizer/plan/planner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,10 @@ preprocess_expression(PlannerInfo *root, Node *expr, int kind)
if (kind != EXPRKIND_RTFUNC)
expr = eval_const_expressions(root, expr);

/* Reset context of expression */
if(EXPRKIND_TARGET == kind && planner_node_transformer_hook)
(void) planner_node_transformer_hook(root, NULL, -1);

/*
* If it's a qual or havingQual, canonicalize it.
*/
Expand Down

0 comments on commit e77fb10

Please sign in to comment.