Skip to content

Use callback instead of calling ExecFilterJunk()#1059

Merged
gfphoenix78 merged 2 commits intoapache:mainfrom
zhangyue-hashdata:main
May 20, 2025
Merged

Use callback instead of calling ExecFilterJunk()#1059
gfphoenix78 merged 2 commits intoapache:mainfrom
zhangyue-hashdata:main

Conversation

@zhangyue-hashdata
Copy link
Copy Markdown
Contributor

  1. Added ExecFilterJunkFunc function pointer to JunkFilter struct;
  2. Replaced ExecFilterJunk() with function pointer calls;
  3. Initialized function pointer in ExecInitJunkFilter() and ExecInitJunkFilterConversion();
  4. Updated all ExecFilterJunk() calls to use the function pointer;

This change makes JunkFilter's filtering behavior more extensible and customizable while maintaining existing functionality.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


Comment thread src/include/nodes/execnodes.h
Comment thread src/backend/executor/execMain.c Outdated
Copy link
Copy Markdown
Contributor

@gfphoenix78 gfphoenix78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

1. Added ExecFilterJunkFunc function pointer to JunkFilter struct;
2. Replaced ExecFilterJunk() with function pointer calls;
3. Initialized function pointer in ExecInitJunkFilter() and
   ExecInitJunkFilterConversion();
4. Updated all ExecFilterJunk() calls to use the function pointer;

This change makes JunkFilter's filtering behavior more extensible
and customizable while maintaining existing functionality.
@gfphoenix78 gfphoenix78 merged commit 86b66ac into apache:main May 20, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants