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
Copy file name to clipboardExpand all lines: website/docs/reference/resource-configs/teradata-configs.md
+86Lines changed: 86 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -413,3 +413,89 @@ These steps collectively ensure that the valid_history strategy effectively mana
413
413
)}}
414
414
```
415
415
See [Collecting Statistics documentation](https://docs.teradata.com/r/76g1CuvvQlYBjb2WPIuk3g/RAyUdGfvREwbO9J0DMNpLw) for more information.
416
+
417
+
## dbt-external-tables
418
+
* [dbt-external-tables](https://github.com/dbt-labs/dbt-external-tables) are supported with dbt-teradata from dbt-teradata v1.9.3 onwards.
419
+
* Under the hood, dbt-teradata uses the concept of foreign tables to create tables from external sources. More information can be found [here](https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Data-Definition-Language-Syntax-and-Examples/Table-Statements/CREATE-FOREIGN-TABLE)
420
+
* User need to add the dbt-external-tables packages as dependency and can be resolved with `dbt deps` command
421
+
```yaml
422
+
packages:
423
+
- package: dbt-labs/dbt_external_tables
424
+
version: [">=0.9.0", "<1.0.0"]
425
+
```
426
+
* User need to add dispatch config for the project to pick the overridden macros from dbt-teradata package
427
+
```yaml
428
+
dispatch:
429
+
- macro_namespace: dbt_external_tables
430
+
search_order: ['dbt', 'dbt_external_tables']
431
+
```
432
+
* To define `STOREDAS` and `ROWFORMAT` for in dbt-external tables, one of the below options can be used:
433
+
* user can use the standard dbt-external-tables config `file_format` and `row_format` respectively
434
+
* Or user can just add it in `USING` config as mentioned in the Teradata's [documentation](https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Data-Definition-Language-Syntax-and-Examples/Table-Statements/CREATE-FOREIGN-TABLE/CREATE-FOREIGN-TABLE-Syntax-Elements/USING-Clause)
435
+
436
+
* For external source, which requires authentication, user needs to create authentication object and pass it in `tbl_properties` as `EXTERNAL SECURITY` object.
437
+
For more information on Authentication object please follow this [link](https://docs.teradata.com/r/Enterprise_IntelliFlex_VMware/SQL-Data-Definition-Language-Syntax-and-Examples/Authorization-Statements-for-External-Routines/CREATE-AUTHORIZATION-and-REPLACE-AUTHORIZATION)
438
+
439
+
* Sample external sources are provided below as references
dbt-teradata internally created temporary tables to fetch the metadata of views for manifest and catalog creation. In case if user does not have permission to create tables on the schema they are working on, they can define a fallback_schema(to which they have proper create/drop privileges) in dbt_project.yml as variable.
0 commit comments