Skip to content

Conversation

@dantengsky
Copy link
Member

@dantengsky dantengsky commented Jan 4, 2026

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Previous comments about the behavior of CommitSink::allow_append_only_skip were incorrect. In fact,
CTAS operations are allowed to skip the update_table_meta operation inside CommitSink if no data
is inserted to the target table.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - fix comments only

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe): fix code comments

This change is Reviewable

@github-actions github-actions bot added the pr-chore this PR only has small changes that no need to record, like coding styles. label Jan 4, 2026
Previous comments about the behavior of CommitSink::allow_append_only_skip were incorrect. In fact,
CTAS operations are allowed to skip the update_table_meta operation inside CommitSink if no data
is inserted to the target table.
@dantengsky dantengsky force-pushed the chore-fix-code-comment branch from a5658bb to 9312def Compare January 4, 2026 09:03
@dantengsky dantengsky marked this pull request as ready for review January 4, 2026 09:03
@dantengsky dantengsky requested a review from SkyFan2002 January 4, 2026 09:03
@SkyFan2002 SkyFan2002 merged commit cc3d1e6 into databendlabs:main Jan 4, 2026
90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-chore this PR only has small changes that no need to record, like coding styles.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants