aws-samples / dbt-glue

This repository contains the dbt-glue adapter
Apache License 2.0
96 stars 66 forks source link

dbt debug/run command fails in DeleteSession operation #395

Closed moomindani closed 3 months ago

moomindani commented 3 months ago

Describe the bug

dbt debug or dbt run command fails in DeleteSession operation.

  >Database Error
  An error occurred (ValidationException) when calling the DeleteSession operation: 1 validation error detected: Value 'dbt-glue-foo/iam_usr_role_dev' at 'requestOrigin' failed to satisfy constraint: Member must satisfy regular expression pattern: [\.\-_A-Za-z0-9]+

Additional context

The issue happened due to this line: https://github.com/aws-samples/dbt-glue/blob/67921d4ab08228718b20b8cd104493e4d345f7ed/dbt/adapters/glue/gluedbapi/connection.py#L289