-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable BigQuery CDC configuration for Python BigQuery sink (#32529)
* include CDC configuration on the storage write transform provider * adding the primary key configuration for CDC and tests * fixing List.of references to use ImmutableList * fixing test, missing calling the cdc info row builder() method * fix test, add config validations * added the xlang params to storage write python wrapper * adding missing comma * shortening property name * changing xlang config property * set use cdc schema property as nullable, added safe retrieval method * fixes property name reference and argument type definition * python format fix * adding xlang IT with BQ * adding missing primary key column to test * python format fix * format xlang test * more format xlang test fixes * and more format xlang test fixes * adding missing import * missing self reference * enabled create if needed functionality for CDC python integration, implemented table constraint support on the bigquery fake dataset services * Update bigquery.py * triggering the xlang tests * fixing lint * addressing few comments * cdc info is added after row transformation now * remove not used param * removed typing information for callable * adding test for cdc using dicts as input and cdc write callable * simplifying the xlang configuration from python perspective, will add callable on a future PR * spotless apply * wrong property passed to xlang builder * missing self * fixing xlang it * fixes wrong property reference * change cdc xlang test to use beam.io.WriteToBigQuery * force another build * modifying comment to trigger build. * addressing PR comments, included new dicts based test for xlang python tests, included the CDC configurations into the existing RowDynamicDestinations object, improved error message for mutation information schema checks.
- Loading branch information
1 parent
06692ca
commit e52868c
Showing
8 changed files
with
414 additions
and
20 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
.github/trigger_files/beam_PostCommit_Python_Xlang_Gcp_Dataflow.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
{ | ||
"comment": "Modify this file in a trivial way to cause this test suite to run" | ||
"comment": "Modify this file in a trivial way to cause this test suite to run", | ||
"modification": 1 | ||
} |
2 changes: 1 addition & 1 deletion
2
.github/trigger_files/beam_PostCommit_Python_Xlang_Gcp_Direct.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"comment": "Modify this file in a trivial way to cause this test suite to run", | ||
"modification": 1 | ||
"modification": 2 | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.