normalize BigQuery CDC - #40177
normalize BigQuery CDC#40177aIbrahiim wants to merge 11 commits into
Conversation
e53dcd9 to
ba37213
Compare
|
Assigning reviewers: R: @shunping for label python. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Hi @Abacn, I added an extended IT for WriteToBigQueryCDC under extended_tests/databases/bigquery_cdc.yaml but on Yaml_Xlang_Direct PostCommit (databases) it fails with: PERMISSION_DENIED: Permission TABLES_UPDATE_DATA denied on the temp yaml_bq_it_* table As normal WriteToBigQuery inserts work fine with this SA but CDC UPSERT via Storage Write API needs tables.updateData and CDC is already covered in xlang_bigqueryio_it_test and the Java SchemaTransform unit tests Could you please advise how we should handle this? |
|
Did some search, it appears we can explicitly Include the Service Account in Dataset Access on Creation (Programmatic Fix): to we may want to make permission settings configurable and pass a parameter here |
66667dc to
49827e8
Compare
|
@Abacn, I implemented the dataset ACL approach and it passed from temp_bigquery_table, cdc IT appends roles/bigquery.dataEditor for beam-github-actions@apache-beam-testing.iam.gserviceaccount.com after create but Yaml_Xlang_Direct databases still fails with TABLES_UPDATE_DATA on storage write cdc and plain WriteToBigQuery is fine Should I look into the Yaml Direct SA / project IAM next, or drop the CDC YAML IT and rely on xlang_bigqueryio_it_test and the Java unit tests for coverage? |
|
Still strange, the service account already has BigQuery Data Editor role, which has |
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.