...

/

Solution: Targets, Tests, and Documentation

Solution: Targets, Tests, and Documentation

Get a detailed review of the solution to the “Targets, Tests, and Documentation” challenge.

We'll cover the following...

Solution

Let’s review the solution to the problem.

Please provide values for the following:
type
service_account
project_id
data-analysis-medium
private_key_id
2c7da4e64069d50bd44cf28567d7661395bed2a1
client_email
dbt-educative-course@data-analysis-medium.iam.gserviceaccount.com
client_id
108207116291318262825
auth_uri
https://accounts.google.com/o/oauth2/auth
token_uri
https://oauth2.googleapis.com/token
auth_provider_x509_cert_url
https://www.googleapis.com/oauth2/v1/certs
client_x509_cert_url
https://www.googleapis.com/robot/v1/metadata/x509/dbt-educative-course%40data-analysis-medium.iam.gserviceaccount.com
private_key
private_key
dataset_name
educative
dataset_location
US
{% macro manage_view() %}
ALTER VIEW {{ this }} 
SET OPTIONS (labels = [('managed_by', 'dbt')]);
{% endmacro %}
Solution code: Targeting, testing, and documenting

Code explanation

In the schema.yml file: ...