Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ryzhyk
Copy link
Contributor

@ryzhyk ryzhyk commented Jan 18, 2026

Fixes #5447

Fix the delta connector to report its initial frontier even if it's on the latest table version already. This way the connector will have a non-null frontier even if it never ingests any data.

This commit also strengthens existing tests to validate the frontier even after suspend, since we've added support for initializing frontiers after restart some time ago.

Fix the delta connector to report its initial frontier even if it's on the
latest table version already. This way the connector will have a non-null
frontier even if it never ingests any data.

This commit also strengthens existing tests to validate the frontier even after
suspend, since we've added support for initializing frontiers after restart
some time ago.

Signed-off-by: Leonid Ryzhyk <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes issue #5447 by ensuring the Delta connector reports its initial frontier even when it's already at the latest table version. This is particularly important for follow and cdc modes where no initial snapshot is read.

Changes:

  • Added logic to report initial frontier in follow and CDC modes when no snapshot is being read
  • Fixed end_version comparison logic to use <= instead of == for proper inclusive bound handling
  • Strengthened existing tests to validate frontier after suspend/resume
  • Fixed typo in error message ("has not schema" → "has no schema")

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/adapters/src/integrated/delta_table/input.rs Added initial frontier reporting for follow/CDC modes (lines 939-948), fixed end_version comparison to properly handle inclusive bounds (lines 970-972), fixed typo in error message (line 1775)
crates/adapters/src/integrated/delta_table/test.rs Added test to verify initial frontier is reported after initial snapshot (lines 890-914), removed conditional around waterline tracking test to enable it for suspend cases (lines 952-969), added new test case for follow mode with suspend (lines 1490-1493)

@ryzhyk ryzhyk added this pull request to the merge queue Jan 18, 2026
Merged via the queue into main with commit a26fdc2 Jan 18, 2026
7 checks passed
@ryzhyk ryzhyk deleted the issue5447 branch January 18, 2026 20:35
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.

[adapters] Delta connector in CDC mode doesn't report initial frontier

3 participants