From 4eda4be592ae03a17c1594cfb2202ba1114ae564 Mon Sep 17 00:00:00 2001 From: Bruno Murino Date: Thu, 25 Jun 2020 23:35:58 +0100 Subject: [PATCH 1/5] fixed typo in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d5561f..7dc7939 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## dbt-presto ### Documentation -For more information on using Spark with dbt, consult the dbt documentation: +For more information on using Presto with dbt, consult the dbt documentation: - [Presto profile](https://docs.getdbt.com/docs/profile-presto) ### Installation From 77fd15bd57a6054029d85ff4f36ab253a20f09c9 Mon Sep 17 00:00:00 2001 From: Bruno Murino Date: Thu, 25 Jun 2020 23:37:21 +0100 Subject: [PATCH 2/5] added sample_profiles.yml --- dbt/include/presto/sample_profiles.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dbt/include/presto/sample_profiles.yml diff --git a/dbt/include/presto/sample_profiles.yml b/dbt/include/presto/sample_profiles.yml new file mode 100644 index 0000000..efd78a6 --- /dev/null +++ b/dbt/include/presto/sample_profiles.yml @@ -0,0 +1,13 @@ +my-presto-db: + target: dev + outputs: + dev: + type: presto + method: none # optional, one of {none | ldap | kerberos} + user: [user] + password: [password] # required if method is ldap or kerberos + database: [database name] + host: [hostname] + port: [port number] + schema: [your dbt schema] + threads: [1 or more] \ No newline at end of file From 08079b3436ebf63e55d9136d2903fb45da754ae2 Mon Sep 17 00:00:00 2001 From: Bruno Murino Date: Fri, 26 Jun 2020 18:12:51 +0100 Subject: [PATCH 3/5] updated setup.py to include sample_profiles.yml --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 762ba52..45a9dca 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ def _dbt_presto_version(): package_data={ 'dbt': [ 'include/presto/dbt_project.yml', + 'include/presto/sample_profiles.yml', 'include/presto/macros/*.sql', 'include/presto/macros/*/*.sql', ] From 8cb92052bd35680b88a708b8757dd01d8324e15b Mon Sep 17 00:00:00 2001 From: Bruno Murino Date: Sat, 4 Jul 2020 21:38:21 +0100 Subject: [PATCH 4/5] updated sample profile --- dbt/include/presto/sample_profiles.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dbt/include/presto/sample_profiles.yml b/dbt/include/presto/sample_profiles.yml index efd78a6..a5a658a 100644 --- a/dbt/include/presto/sample_profiles.yml +++ b/dbt/include/presto/sample_profiles.yml @@ -1,6 +1,6 @@ -my-presto-db: - target: dev +default: outputs: + dev: type: presto method: none # optional, one of {none | ldap | kerberos} @@ -10,4 +10,6 @@ my-presto-db: host: [hostname] port: [port number] schema: [your dbt schema] - threads: [1 or more] \ No newline at end of file + threads: [1 or more] + + target: dev From 6935230066dc7d3b1a0bbc58c3bdc71716af46f4 Mon Sep 17 00:00:00 2001 From: Bruno Murino Date: Sat, 4 Jul 2020 21:40:16 +0100 Subject: [PATCH 5/5] further updates to sample profiles --- dbt/include/presto/sample_profiles.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dbt/include/presto/sample_profiles.yml b/dbt/include/presto/sample_profiles.yml index a5a658a..9fe428a 100644 --- a/dbt/include/presto/sample_profiles.yml +++ b/dbt/include/presto/sample_profiles.yml @@ -4,12 +4,23 @@ default: dev: type: presto method: none # optional, one of {none | ldap | kerberos} - user: [user] + user: [dev_user] password: [password] # required if method is ldap or kerberos database: [database name] host: [hostname] port: [port number] - schema: [your dbt schema] + schema: [dev_schema] + threads: [1 or more] + + prod: + type: presto + method: none # optional, one of {none | ldap | kerberos} + user: [prod_user] + password: [prod_password] # required if method is ldap or kerberos + database: [database name] + host: [hostname] + port: [port number] + schema: [prod_schema] threads: [1 or more] target: dev