Skip to content

Use callback instead of calling ExecFilterJunk() #1059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 20, 2025

Conversation

zhangyue-hashdata
Copy link
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


Copy link
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