Skip to content

Conversation

@ebyhr
Copy link
Member

@ebyhr ebyhr commented Nov 17, 2025

Description

Fixes #25922

Screenshot 2025-11-17 at 10 07 08

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Nov 17, 2025
@github-actions github-actions bot added the iceberg Iceberg connector label Nov 17, 2025
@ebyhr ebyhr force-pushed the ebi/core-missing-metrics branch 2 times, most recently from 35d8ee7 to d00e9f6 Compare November 17, 2025 03:10
@github-actions github-actions bot added the delta-lake Delta Lake connector label Nov 17, 2025
@ebyhr ebyhr force-pushed the ebi/core-missing-metrics branch from d00e9f6 to 5131199 Compare November 17, 2025 05:09
mergePage.updateDeletionsPage().ifPresent(deletions -> processDeletion(deletions, UPDATE_PREIMAGE_CDF_LABEL));

writtenBytes = insertPageSink.getCompletedBytes();
writtenBytes += cdfPageSink == null ? 0 : cdfPageSink.getCompletedBytes();
Copy link
Contributor

Choose a reason for hiding this comment

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

if statement would be more readable then ternary one

Copy link
Member Author

Choose a reason for hiding this comment

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

This is simple enough to me.

assertThat(queryStats.getLogicalWrittenDataSize().toBytes()).isPositive();

if (hasBehavior(SUPPORTS_REPORTING_WRITTEN_BYTES)) {
assertThat(queryStats.getPhysicalWrittenDataSize().toBytes()).isPositive();
Copy link
Contributor

Choose a reason for hiding this comment

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

can we assert on the actual written size?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think we want to make this assertion complex in the base test class. Such tests can be implemented in each connector, with more detailed scenarios.

@ebyhr ebyhr force-pushed the ebi/core-missing-metrics branch from 6972f82 to 0a64301 Compare November 18, 2025 00:42
@ebyhr
Copy link
Member Author

ebyhr commented Nov 18, 2025

(Just squashed fixup commits)

@ebyhr ebyhr merged commit d5ad905 into trinodb:master Nov 18, 2025
100 checks passed
@ebyhr ebyhr deleted the ebi/core-missing-metrics branch November 18, 2025 02:44
@github-actions github-actions bot added this to the 479 milestone Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector iceberg Iceberg connector

Development

Successfully merging this pull request may close these issues.

Missing written rows/data metrics for Iceberg's MERGE INTO query summary

3 participants