Skip to content
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

Fixing Examples #5206

Merged
merged 6 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions website/docs/docs/core/connect-data-platform/databricks-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ your_profile_name:
outputs:
dev:
type: databricks
catalog: [optional catalog name if you are using Unity Catalog]
schema: [schema name] # Required
host: [yourorg.databrickshost.com] # Required
http_path: [/sql/your/http/path] # Required
token: [dapiXXXXXXXXXXXXXXXXXXXXXXX] # Required Personal Access Token (PAT) if using token-based authentication
threads: [1 or more] # Optional, default 1
catalog: CATALOG_NAME #optional catalog name if you are using Unity Catalog]
schema: SCHEMA_NAME # Required
host: YOURORG.databrickshost.com # Required
http_path: /SQL/YOUR/HTTP/PATH # Required
token: dapiXXXXXXXXXXXXXXXXXXXXXXX # Required Personal Access Token (PAT) if using token-based authentication
threads: 1_OR_MORE # Optional, default 1
```

</File>
Expand All @@ -76,14 +76,14 @@ your_profile_name:
outputs:
dev:
type: databricks
catalog: [optional catalog name if you are using Unity Catalog]
schema: [schema name] # Required
host: [yourorg.databrickshost.com] # Required
http_path: [/sql/your/http/path] # Required
catalog: CATALOG_NAME #optional catalog name if you are using Unity Catalog
schema: SCHEMA_NAME # Required
host: YOUR_ORG.databrickshost.com # Required
http_path: /SQL/YOUR/HTTP/PATH # Required
auth_type: oauth # Required if using OAuth-based authentication
client_id: [OAuth-Client-ID] # The ID of your OAuth application. Required if using OAuth-based authentication
client_secret: [XXXXXXXXXXXXXXXXXXXXXXXXXXX] # OAuth client secret. # Required if using OAuth-based authentication
threads: [1 or more] # Optional, default 1
client_id: OAUTH_CLIENT_ID # The ID of your OAuth application. Required if using OAuth-based authentication
client_secret: XXXXXXXXXXXXXXXXXXXXXXXXXXX # OAuth client secret. # Required if using OAuth-based authentication
threads: 1_OR_MORE # Optional, default 1
```
</File>
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
30 changes: 15 additions & 15 deletions website/docs/docs/core/connect-data-platform/hive-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ your_profile_name:
outputs:
dev:
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
type: hive
host: [host name]
http_path: [optional, http path to Hive] # default value: None
port: [port] # default value: 10000
host: HOST_NAME
http_path: YOUR/HTTP/PATH # optional, http path to Hive default value: None
port: PORT # default value: 10000
auth_type: ldap
use_http_transport: [true / false] # default value: true
use_ssl: [true / false] # TLS should always be used with LDAP to ensure secure transmission of credentials, default value: true
username: [username]
password: [password]
schema: [schema name]
use_http_transport: BOOLEAN # default value: true
use_ssl: BOOLEAN # TLS should always be used with LDAP to ensure secure transmission of credentials, default value: true
username: USERNAME
password: PASSWORD
schema: SCHEMA_NAME
```

</File>
Expand All @@ -99,13 +99,13 @@ your_profile_name:
outputs:
dev:
type: hive
host: [hostname]
port: [port] # default value: 10000
auth_type: [GSSAPI]
kerberos_service_name: [kerberos service name] # default value: None
use_http_transport: true # default value: true
use_ssl: true # TLS should always be used to ensure secure transmission of credentials, default value: true
schema: [schema name]
host: HOSTNAME
port: PORT # default value: 10000
auth_type: GSSAPI
kerberos_service_name: KERBEROS_SERVICE_NAME # default value: None
use_http_transport: BOOLEAN # default value: true
use_ssl: BOOLEAN # TLS should always be used to ensure secure transmission of credentials, default value: true
schema: SCHEMA_NAME

```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,9 @@ To configure this inside of dbt Cloud, use the [extended attributes feature](/do

compute:
Compute1:
http_path:[`/some/other/path']
http_path: /SOME/OTHER/PATH
Compute2:
http_path:[`/some/other/path']
http_path: /SOME/OTHER/PATH

```

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the profile.yml Under Selecting compute per model also uses the <profile-name> but maybe we should change all profile.yml and project.yml examples in one PR to reduce confusion. what do you think?

Expand Down
20 changes: 10 additions & 10 deletions website/docs/reference/resource-properties/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@ models:
# model-level constraints
constraints:
- type: primary_key
columns: [<first_column>, <second_column>, ...]
- type: foreign_key # multi_column
columns: [<first_column>, <second_column>, ...]
expression: "<other_model_schema>.<other_model_name> (<other_model_first_column>, <other_model_second_column>, ...)"
columns: FIRST_COLUMN, SECOND_COLUMN, ...
- type: FOREIGN_KEY # multi_column
columns: FIRST_COLUMN, SECOND_COLUMN, ...
expression: "OTHER_MODEL_SCHEMA.OTHER_MODEL_NAME (OTHER_MODEL_FIRST_COLUMN, OTHER_MODEL_SECOND_COLUMN, ...)"
- type: check
columns: [<first_column>, <second_column>, ...]
expression: "<first_column> != <second_column>"
name: human_friendly_name
columns: FIRST_COLUMN, SECOND_COLUMN, ...
expression: "FIRST_COLUMN != SECOND_COLUMN"
name: HUMAN_FRIENDLY_NAME
- type: ...

columns:
- name: <first_column>
data_type: <data_type>
- name: FIRST_COLUMN
data_type: DATA_TYPE

# column-level constraints
constraints:
- type: not_null
- type: unique
- type: foreign_key
expression: <other_model_schema>.<other_model_name> (<other_model_column>)
expression: OTHER_MODEL_SCHEMA.OTHER_MODEL_NAME (OTHER_MODEL_COLUMN)
- type: ...
```

Expand Down
Loading