diff --git a/README.md b/README.md index 7dc7939..0c848e1 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,16 @@ $ pip install dbt-presto A dbt profile can be configured to run against Presto using the following configuration: -| Option | Description | Required? | Example | -|---------|----------------------------------------------------|-------------------------|--------------------------| -| method | The Presto authentication method to use | Optional (default=`none`) | `none`|`kerberos` | -| user | Username for authentication | Required | `none`|`drew` | -| password | Password for authentication | Optional (required if `method` is `ldap|kerberos`) | `none`|`abc123` | -| database | Specify the database to build models into | Required | `analytics` | -| schema | Specify the schema to build models into | Required | `dbt_drew` | -| host | The hostname to connect to | Required | `127.0.0.1` | -| port | The port to connect to the host on | Required | `8080` | -| threads | How many threads dbt should use | Optional(default=`1`) | `8` | +| Option | Description | Required? | Example | +| -------- | ----------------------------------------- | -------------------------------------------------- | ------------------ | +| method | The Presto authentication method to use | Optional (default=`none`) | `none`\|`kerberos` | +| user | Username for authentication | Required | `drew` | +| password | Password for authentication | Optional (required if `method` is `ldap|kerberos`) | `none`\|`abc123` | +| database | Specify the database to build models into | Required | `analytics` | +| schema | Specify the schema to build models into | Required | `dbt_drew` | +| host | The hostname to connect to | Required | `127.0.0.1` | +| port | The port to connect to the host on | Required | `8080` | +| threads | How many threads dbt should use | Optional(default=`1`) | `8` | diff --git a/dbt/adapters/presto/connections.py b/dbt/adapters/presto/connections.py index 3d7fc82..b36b333 100644 --- a/dbt/adapters/presto/connections.py +++ b/dbt/adapters/presto/connections.py @@ -22,8 +22,8 @@ class PrestoCredentials(Credentials): host: str port: Port user: str - password: Optional[str] - method: Optional[str] + password: Optional[str] = None + method: Optional[str] = None _ALIASES = { 'catalog': 'database' }