Skip to content

Fix segment NDV statistics restoration. - #138

Open
woblerr wants to merge 1 commit into
apache:mainfrom
woblerr:fix_integration
Open

woblerr wants to merge 1 commit into
apache:mainfrom
woblerr:fix_integration

Conversation

@woblerr

@woblerr woblerr commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator
  • Generate float8 arrays instead of int8 arrays for Cloudberry segment NDV statistics (kind 8) to preserve their original type and support fractional values.
  • Cover integer and fractional NDV values in the unit test.
  • Add an integration regression test for restoring fractional NDV statistics in the fifth slot.

Related to #65.

@woblerr woblerr added the bug Something isn't working label Nov 7, 2026
Cloudberry stores segment NDV statistics (kind 8) as float8 arrays, but gpbackup generated int8 arrays. Fractional NDV values caused statistics restoration with --with-stats to fail, while integer values were restored with the wrong element type.

Generate float8 arrays for kind 8 and add regression coverage for fractional NDV values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant