Skip to content

Conversation

@gfphoenix78
Copy link
Contributor

Refactor analyze logic for PAX like AOCO.

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


Refactor analyze logic for PAX like AOCO.
@my-ship-it
Copy link
Contributor

Thank you for filing the PR.
Compared to the previous PAX analyze logic, does our new implementation method have performance improvements?

@yjhjstz
Copy link
Member

yjhjstz commented Nov 19, 2025

AO/CO ANALYZE sampling by combining Knuth's Algorithm S and varblock skipping in this patch

please refer to 3807ca3

@gfphoenix78
Copy link
Contributor Author

AO/CO ANALYZE sampling by combining Knuth's Algorithm S and varblock skipping in this patch

please refer to 3807ca3

The number of sampling tuples is less than targrows if dead tuples are selected.

AnalyzeBlockItem item;
item.block = mp.GetMicroPartitionId();
item.row_count = mp.GetTupleCount();
Assert(item.row_count > 0);
Copy link
Member

Choose a reason for hiding this comment

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

when delete all tuples , row_count maybe 0 ?

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