dbt-labs / dbt-athena

The athena adapter plugin for dbt (https://getdbt.com)
https://dbt-athena.github.io
Apache License 2.0
228 stars 100 forks source link

fix: remove leading whitespaces on post-hook operations #705

Closed sanromeo closed 3 months ago

sanromeo commented 3 months ago

Description

Resovles #704 On post-hook operation vacuum, optimize presented leading whitespaces in query, even if you config looks like this:

      +post-hook:
        - "vacuum {{ this }}"
        - "optimize {{ this }} rewrite data using bin_pack"

So, lstrip() method fix it

Checklist