{"action":"created","issue":{"url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/989","repository_url":"https://api.github.com/repos/fishtown-analytics/dbt","labels_url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/989/comments","events_url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/989/events","html_url":"https://github.com/fishtown-analytics/dbt/issues/989","id":358336651,"node_id":"MDU6SXNzdWUzNTgzMzY2NTE=","number":989,"title":"Post-hooks in SQL no longer run in v0.11","user":{"login":"tomdean","id":319569,"node_id":"MDQ6VXNlcjMxOTU2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/319569?v=4","gravatar_id":"","url":"https://api.github.com/users/tomdean","html_url":"https://github.com/tomdean","followers_url":"https://api.github.com/users/tomdean/followers","following_url":"https://api.github.com/users/tomdean/following{/other_user}","gists_url":"https://api.github.com/users/tomdean/gists{/gist_id}","starred_url":"https://api.github.com/users/tomdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomdean/subscriptions","organizations_url":"https://api.github.com/users/tomdean/orgs","repos_url":"https://api.github.com/users/tomdean/repos","events_url":"https://api.github.com/users/tomdean/events{/privacy}","received_events_url":"https://api.github.com/users/tomdean/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-08T23:52:39Z","updated_at":"2018-09-08T23:56:06Z","closed_at":"2018-09-08T23:54:42Z","author_association":"NONE","body":"## Issue\r\n\r\n### Issue description\r\n\r\nPost-hooks in SQL files passed to the `config` Jinja2 macro no longer run.\r\n\r\n```\r\n{{\r\n  config({\r\n    \"materialized\": 'incremental',\r\n    \"sql_where\": True,\r\n    \"unique_key\": 'order_key',\r\n    \"post-hook\": [\r\n      'CREATE UNIQUE INDEX IF NOT EXISTS IX_{{this.name}}_pk ON {{ this }}(order_key)',\r\n      'CREATE INDEX IF NOT EXISTS IX_{{this.name}}_placed_at ON {{ this }}(created_at)'\r\n    ]\r\n  })\r\n}}\r\n```\r\n\r\n### Results\r\n\r\nExpect two indexes to be created on the table, but none exists after either an incremental or full refresh. All indices across all tables & post-hooks are created as expected in 0.10.x\r\n\r\n### System information\r\nThe output of `dbt --version`:\r\n```\r\ndbt --version\r\ninstalled version: 0.11.0\r\n   latest version: 0.11.0\r\n\r\nUp to date!\r\n```\r\n\r\nThe operating system you're running on:\r\n```\r\nuname -a\r\nDarwin ****.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64\r\n```\r\n\r\nThe python version you're using (probably the output of `python --version`)\r\n\r\n```\r\npython --version\r\nPython 3.6.4\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nCreate an index through through a post-hook passed to the config macro.\r\n"},"comment":{"url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/comments/419680737","html_url":"https://github.com/fishtown-analytics/dbt/issues/989#issuecomment-419680737","issue_url":"https://api.github.com/repos/fishtown-analytics/dbt/issues/989","id":419680737,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTY4MDczNw==","user":{"login":"tomdean","id":319569,"node_id":"MDQ6VXNlcjMxOTU2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/319569?v=4","gravatar_id":"","url":"https://api.github.com/users/tomdean","html_url":"https://github.com/tomdean","followers_url":"https://api.github.com/users/tomdean/followers","following_url":"https://api.github.com/users/tomdean/following{/other_user}","gists_url":"https://api.github.com/users/tomdean/gists{/gist_id}","starred_url":"https://api.github.com/users/tomdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomdean/subscriptions","organizations_url":"https://api.github.com/users/tomdean/orgs","repos_url":"https://api.github.com/users/tomdean/repos","events_url":"https://api.github.com/users/tomdean/events{/privacy}","received_events_url":"https://api.github.com/users/tomdean/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T23:56:06Z","updated_at":"2018-09-08T23:56:06Z","author_association":"NONE","body":"Missed those while searching around - thanks for the quick reply!"}}
{"actor":{"display_login":"tomdean"}}