Repository navigation
feat(bigquery): add dataplex_get_data_profile_scan sample to get a Da… - #14736
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new Python sample to retrieve a Dataplex data profile scan and its latest profile results, along with corresponding unit tests and configuration files. The feedback highlights two main improvements: first, adding a defensive check in dataplex_get_data_profile_scan.py to prevent a potential AttributeError when scan.data_profile_result is unpopulated; second, updating the ignored Python versions in noxfile_config.py to align with repository guidelines by testing only the oldest and newest supported releases.
de954fc to
db86c7f
Compare
…taplex data profile scan and latest results Problem: The Dataplex documentation (https://cloud.google.com/dataplex/docs/use-data-profiling#most-recent-scan) needs a standalone, tested Python code sample demonstrating how to get a Dataplex data profile scan and latest results (region tag `dataplex_get_data_profile_scan`). Solution: - Add `get_data_profile_scan(project_id: str, location: str, data_scan_id: str) -> None` in `bigquery/data_profile_scan/dataplex_get_data_profile_scan.py` (Retrieve a Dataplex DataScan resource with DataScanView.FULL to inspect its configuration and most recent profile scan results.) - Add unit tests (`bigquery/data_profile_scan/dataplex_get_data_profile_scan_test.py`) covering both the success path and API error handling (`GoogleAPICallError`)
db86c7f to
9df3a88
Compare
…taplex data profile scan and latest results
Problem:
The Dataplex documentation (https://cloud.google.com/dataplex/docs/use-data-profiling#most-recent-scan) needs a standalone, tested Python code sample demonstrating how to get a Dataplex data profile scan and latest results (region tag
dataplex_get_data_profile_scan).Solution:
get_data_profile_scan(project_id: str, location: str, data_scan_id: str) -> Noneinbigquery/data_profile_scan/dataplex_get_data_profile_scan.py(Retrieve a Dataplex DataScan resource with DataScanView.FULL to inspect its configuration and most recent profile scan results.)bigquery/data_profile_scan/dataplex_get_data_profile_scan_test.py) covering both the success path and API error handling (GoogleAPICallError)Description
Fixes #
Checklist
Testing
Compliance & Style
Post-Approval Actions