-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ingest): bigquery - Setting partition id for profiling data and project_id fix #6558
Conversation
Don't list projects if project_id is set to eliminate the need for resourcemanager.projects.list permission
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
as discussed, we should move to using AllowDenyPattern.is_fully_specified_allow_list and get_allowed_list so we can actually deprecate the project_id
config
projects = BigQueryDataDictionary.get_projects(conn) | ||
if len(projects) == 0: | ||
logger.warning( | ||
"Get projects didn't return any project. Maybe resourcemanager.projects.get permission is missing for the service account. You can assign predefined roles/bigquery.metadataViewer role to your service account." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1- this is much more useful!
@@ -186,6 +186,13 @@ def get_workunits( | |||
|
|||
request = cast(BigqueryProfilerRequest, request) | |||
profile.sizeInBytes = request.table.size_in_bytes | |||
# If table is partitioned we profile only one partition (if nothing set then the last one) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! very good comments..
resourcemanager.projects.list
permissionChecklist