Skip to content

Revert "Fix copy to replicated table display copy number is incorrect."#1667

Open
robertmu wants to merge 1 commit intoapache:mainfrom
robertmu:fix-copy-from-on-repl-table
Open

Revert "Fix copy to replicated table display copy number is incorrect."#1667
robertmu wants to merge 1 commit intoapache:mainfrom
robertmu:fix-copy-from-on-repl-table

Conversation

@robertmu
Copy link
Copy Markdown

@robertmu robertmu commented Apr 8, 2026

This reverts commit cfd2ce4.

The reverted change normalizes COPY FROM row counts on replicated tables by dividing by the number of segments. This causes inconsistent and misleading completion tags (e.g. COPY TO reports N*segments while COPY FROM reports N for the same replicated data).

It also produces arbitrary results in ON SEGMENT workflows used by backup/restore. For example, on a 4-segment cluster, loading three 100-row files and one empty file can report 75 rows ((100*3)/4), which is not a meaningful load count.

Restore Greenplum-compatible behavior by reporting aggregated completed rows.

Refs:

This reverts commit cfd2ce4.

The reverted change normalizes COPY FROM row counts on replicated tables
by dividing by the number of segments. This causes inconsistent and
misleading completion tags (e.g. COPY TO reports N*segments while COPY FROM
reports N for the same replicated data).

It also produces arbitrary results in ON SEGMENT workflows used by
backup/restore. For example, on a 4-segment cluster, loading three 100-row
files and one empty file can report 75 rows ((100*3)/4), which is not a
meaningful load count.

Restore Greenplum-compatible behavior by reporting aggregated completed rows.

Refs:
- apache#1298
- apache/cloudberry-backup#36
@robertmu robertmu requested a review from avamingli April 8, 2026 03:04
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi, @robertmu welcome!🎊 Thanks for taking the effort to make our project better! 🙌 Keep making such awesome contributions!

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.

1 participant