You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# maxQueryResultRows: 50 # Optional: Limits the number of rows returned by queries. Defaults to 50.
137
+
# maximumBytesBilled: 10737418240 # Optional: Per-query bytes scanned cap (in bytes).
136
138
```
137
139
138
140
## Reference
@@ -148,3 +150,4 @@ useClientOAuth: true
148
150
| scopes |[]string | false | A list of OAuth 2.0 scopes to use for the credentials. If not provided, default scopes are used. |
149
151
| impersonateServiceAccount | string | false | Service account email to impersonate when making BigQuery and Dataplex API calls. The authenticated principal must have the `roles/iam.serviceAccountTokenCreator` role on the target service account. [Learn More](https://cloud.google.com/iam/docs/service-account-impersonation)|
150
152
| maxQueryResultRows | int | false | The maximum number of rows to return from a query. Defaults to 50. |
153
+
| maximumBytesBilled | int64 | false | The maximum bytes billed per query. When set, queries that exceed this limit fail before executing. |
A "dataplex-search-dq-scans" tool allows to search for data quality scans based on the provided parameters.
7
+
aliases:
8
+
- /resources/tools/dataplex-search-dq-scans
9
+
---
10
+
11
+
## About
12
+
13
+
A `dataplex-search-dq-scans` tool returns data quality scans that match the given criteria.
14
+
It's compatible with the following sources:
15
+
16
+
-[dataplex](../../sources/dataplex.md)
17
+
18
+
`dataplex-search-dq-scans` accepts the following optional parameters:
19
+
20
+
-`filter` - Filter string to search/filter data quality scans. E.g. "display_name = \"my-scan\"".
21
+
-`data_scan_id` - The resource name of the data scan to filter by: projects/{project}/locations/{locationId}/dataScans/{dataScanId}.
22
+
-`table_name` - The name of the table to filter by. Maps to data.entity in the filter string. E.g. "//bigquery.googleapis.com/projects/P/datasets/D/tables/T".
23
+
-`pageSize` - Number of returned data quality scans in the page. Defaults to `10`.
24
+
-`orderBy` - Specifies the ordering of results.
25
+
26
+
## Requirements
27
+
28
+
### IAM Permissions
29
+
30
+
Dataplex uses [Identity and Access Management (IAM)][iam-overview] to control
31
+
user and group access to Dataplex resources. Toolbox will use your
32
+
[Application Default Credentials (ADC)][adc] to authorize and authenticate when
33
+
interacting with [Dataplex][dataplex-docs].
34
+
35
+
In addition to [setting the ADC for your server][set-adc], you need to ensure
36
+
the IAM identity has been given the correct IAM permissions for the tasks you
37
+
intend to perform. See [Dataplex Universal Catalog IAM permissions][iam-permissions]
38
+
and [Dataplex Universal Catalog IAM roles][iam-roles] for more information on
39
+
applying IAM permissions and roles to an identity.
err: "error unmarshaling source: unable to parse source \"my-instance\" as \"bigquery\": Key: 'Config.Project' Error:Field validation for 'Project' failed on the 'required' tag",
281
301
},
302
+
{
303
+
desc: "negative maximum bytes billed",
304
+
in: `
305
+
kind: source
306
+
name: my-instance
307
+
type: bigquery
308
+
project: my-project
309
+
maximumBytesBilled: -1
310
+
`,
311
+
err: "error unmarshaling source: unable to parse source \"my-instance\" as \"bigquery\": [1:21] Key: 'Config.MaximumBytesBilled' Error:Field validation for 'MaximumBytesBilled' failed on the 'gte' tag\n> 1 | maximumBytesBilled: -1\n ^\n 2 | name: my-instance\n 3 | project: my-project\n 4 | type: bigquery",
0 commit comments