Repository navigation
Conversation
claudevdm
force-pushed
the
addfiles-dynamic-dest3
branch
from
October 27, 2026 01:40
cea3aea to
782c0c4
Compare
claudevdm
marked this pull request as ready for review
October 27, 2026 01:45
Collaborator
Author
|
R: @ahmedabu98 |
Contributor
There was a problem hiding this comment.
📋 Review Summary
This PR cleanly threads a destination-table key (String) through the AddFiles registration pipeline (ReadFooterSchema, ConvertToDataFile, CreateManifests, and CommitManifestFilesDoFn) in preparation for dynamic table destinations. The refactoring preserves existing single-table behavior by attaching a constant table key via WithKeys and dropping it before the global schema combination step.
🔍 General Feedback
- Thread-safety in
ConvertToDataFileis well-maintained by transitioning the single-table state fields into a per-tableTableStateobject managed in aConcurrentMap, with synchronization and refresh flags scoped per table. - Coders and key types are properly configured across all modified
PCollectionstages and unit test helpers.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Contributor
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Threads a destination-table key through the
AddFilesregistration chain, holding the keyconstant at the configured table.
ReadFooterSchemaDoFn<String, SchemaGroup>DoFn<KV<String,String>, KV<String,SchemaGroup>>ConvertToDataFileDoFn<String, SerializableDataFile>DoFn<KV<String,String>, KV<String,SerializableDataFile>>CreateManifestsspecIdKV<table, specId>CommitManifestFilesDoFnidentifierfieldbatch.getKey()AddFiles.expandsupplies the constant withWithKeys.<String,String>of(tableIdentifier), anddistinctSchemasdrops the key again soits global combine and the commit path downstream are untouched.
Reviewable as six steps, in this order:
fileSchemashelperConcurrentMap<String, TableState>, name still constantidentifierand its constructor parameters are deletedKV<table, specId>