Our users include wide range of people like software engineers and some product folks. Often times, they query a table with no proper filters or scan a lot number of partitions.
Want to see if we have a any feature like:
- If the query doesn't have a partition clause, don't run the query
- if the query scans too many partitions, show a warning dialogue to the user.
Something like this ?
To implement a feature that controls query execution based on certain criteria like the absence of a partition clause or the scanning of too many partitions, you can take a few approaches depending on the database or data warehouse system you are using. Below are some general strategies and implementation ideas:
Query Analysis and Rejection
Method:
Implementation Steps:
WHERE
conditions on partition columns.@Poala_Tenorio is there a guide on how to automatically attach any of these query-preprocessors to the execution flow of a bigquery based? can this be limited to certain IAM roles? Meaning once I have a query-preprocessor configured, how do I ensure that every member of an IAM role must pass the query-preprocessor check before a query is submitted for execution in bigquery independent of the source of the bigquery invocation (API, notebooks, UI queries, etc). Could you provide the steps necessary to achieve this configuration?