{"repo":"yu-iskw/dbt-airflow-macros","free":true,"listed":false,"github":"https://github.com/yu-iskw/dbt-airflow-macros","clone":"git clone https://github.com/yu-iskw/dbt-airflow-macros.git","description":"Dbt package for Apache Airflow inspired macros","language":"Shell","stars":17,"topics":["dbt","dbt-packages","airflow"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"dbt-airflow-macros This is a dbt package to use macros inspired by Apache Airflow. The macros are not warehouse-specific. Those work with any warehouse. - Recommended environments - Installation - Environment variable - Macros - Examples - Tested environments - Links Recommended environments - Python: 3.6, 3.7 and 3.8 - dbt: =0.17.0 Installation Include in packages.yaml Environment variable The shell environment variable EXECUTION DATE enables us to pass the date and time for the dbt macros. The ISO 8601 format is available, because the package uses datetime.datetime.fromisoformat internally. If we don't set EXECUTION DATE , then it is set to the current UTC date and time. Macros The package includes the following macros. timezone is an optional argument. When it is set to none , the timezone is UTC by default. Macro Description -------------------------------------------------- --------------------------------------------- dbt airflow macros.execution date(timezone=none) datetime.datetime object dbt airflow macros.ds(timezone=none) \"%Y-%m-%d\" of execution time dbt airflow macros.ds nodash(timezone=none) \"%Y%m%d\" of execution time dbt airflow macros.ts(timezone=none) \"%Y-%m-%dT%H:%M:%S+00:00\" of execution time dbt airflow macros.ts nodash(timezone=none) \"%Y%m%dT%H%M%S\" of execution time Examples test macros.sql is a file to test the macros on PostgreSQL. Those would be helpful to understand how to use the macros. Tested environments The continuous integration tested the dbt p","default_branch":null,"files":null,"tree":[],"storefront":"/r/yu-iskw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yu-iskw/dbt-airflow-macros/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}