-
Notifications
You must be signed in to change notification settings - Fork 976
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'current' into rpourzand-graphql-updates
- Loading branch information
Showing
126 changed files
with
285 additions
and
2,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
website/docs/community/resources/jobs-terms-and-conditions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: "dbt Labs Community #jobs Channels Terms and Conditions" | ||
id: "jobs-terms-and-conditions" | ||
description: "Before posting a job in the dbt Community or submitting an application, review these terms and conditions." | ||
--- | ||
|
||
I agree to abide by the [dbt Community Code of Conduct](community/resources/code-of-conduct) and all laws applicable to me in my use of the dbt Community's #jobs channels. I further agree: | ||
|
||
- dbt Labs is not responsible for not does it warrant or guarantee the validity, accuracy, completeness, legality, or reliability of any functionality of any #jobs channel, any posting's content, or any application and/or solicitation of any kind of employment. | ||
- dbt Labs does not review and approve job-related content. | ||
- dbt Labs disclaims liability of any kind whatsoever for any type of damage that occurs while using the community Slack for job-related reasons, and I waive any type of claim (including actual, special or consequential damages) to the maximum extent permitted by law. | ||
- Without limitation, dbt Labs disclaims liability for quality, performance, merchantability, and fitness for a particular purpose, express or implied, that may arise out of my use of the community Slack for job-related content, my reliance on such information, and/or my provision/receipt of job-related information. | ||
- I understand that no internet-based site is without risk, and my use is at my own risk. | ||
- My use of any job-posting template (or other forum for providing job-related information) confirms my consent to provide the data posted, confirms that I have permission to post such data, and is subject to the terms of the [dbt Labs privacy policy](https://www.getdbt.com/cloud/privacy-policy). | ||
|
||
For further information, please contact [[email protected]](mailto:[email protected]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,127 +68,6 @@ You can use hooks to provide database-specific functionality not available out-o | |
</File> | ||
|
||
|
||
</VersionBlock> | ||
|
||
<VersionBlock lastVersion="1.1"> | ||
|
||
### Examples using hooks | ||
|
||
Here's a minimal example of using hooks to grant privileges. For more information, see [`on-run-start` & `on-run-end` hooks](/reference/project-configs/on-run-start-on-run-end) and [`pre-hook` & `post-hook`](/reference/resource-configs/pre-hook-post-hook) reference sections. | ||
|
||
<File name='dbt_project.yml'> | ||
|
||
```yml | ||
on-run-end: | ||
- "grant usage on {{ target.schema }} to role reporter" | ||
|
||
models: | ||
+post-hook: | ||
- "grant select on {{ this }} to role reporter" | ||
|
||
``` | ||
|
||
</File> | ||
|
||
You can also apply the `post-hook` to individual models using a `config` block: | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```sql | ||
{{ config( | ||
post_hook=[ | ||
"grant select on {{ this }} to role reporter" | ||
] | ||
) }} | ||
|
||
select ... | ||
|
||
``` | ||
|
||
</File> | ||
|
||
You should use database-specific syntax when appropriate: | ||
|
||
<WHCode> | ||
|
||
<div warehouse="BigQuery"> | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```sql | ||
{{ config( | ||
post_hook=[ | ||
'grant `roles/bigquery.dataViewer` on {{ this.type }} {{ this }} to "user:[email protected]"' | ||
] | ||
) }} | ||
|
||
select ... | ||
|
||
``` | ||
|
||
</File> | ||
|
||
</div> | ||
|
||
<div warehouse="Databricks"> | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```sql | ||
{{ config( | ||
post_hook=[ | ||
"grant select on {{ this }} to `[email protected]`" | ||
] | ||
) }} | ||
|
||
select ... | ||
|
||
``` | ||
|
||
</File> | ||
|
||
</div> | ||
|
||
<div warehouse="Redshift"> | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```sql | ||
{{ config( | ||
post_hook=[ | ||
"grant select on {{ this }} to reporter" | ||
] | ||
) }} | ||
|
||
select ... | ||
|
||
``` | ||
|
||
</File> | ||
|
||
</div> | ||
|
||
<div warehouse="Snowflake"> | ||
|
||
<File name='models/<model_name>.sql'> | ||
|
||
```sql | ||
{{ config( | ||
post_hook=[ | ||
"grant select on {{ this }} to role reporter" | ||
] | ||
) }} | ||
|
||
select ... | ||
|
||
``` | ||
|
||
</File> | ||
|
||
</div> | ||
|
||
</WHCode> | ||
|
||
</VersionBlock> | ||
|
||
### Calling a macro in a hook | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.