v1.0.0
harels
released this
26 Jul 14:22
·
504 commits
to main
since this release
This is a the first major version release of Cosmos! Please notice there are quite a few breaking changes.
This release includes a simplified config interface and introduces dbt loading modes that align more closely with how users would expect dbt to behave.
Here's an example of the new config interface:
`from cosmos import DbtDag
profile_config = ProfileConfig(
profile_name="default",
target_name="dev",
profile_mapping=PostgresUserPasswordProfileMapping(
conn_id="airflow_db",
profile_args={"schema": "public"},
),
)
my_cosmos_dag = DbtDag(
project_config=ProjectConfig(
"/usr/local/airflow/dags/my_dbt_project",
),
profile_config=profile_config,
# normal dag parameters
schedule_interval="@daily",
start_date=datetime(2023, 1, 1),
catchup=False,
dag_id="my_cosmos_dag",
)`
What's Changed
- Fix BQ connection parsing with dataset info by @MonideepDe in #367
- [BREAKING] Refactor dbt project parsing and Airflow DAG generation by @tatiana in #360
- ⬆ [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #373
- Snowflake private key by @patawan in #378
- Change
test_behavior
andexecution_mode
to useEnum
as opposed to Literals by @tatiana in #379 - Add support to run dbt Python models by @tatiana in #375
- Add support to GCP connections that define
keyfile_dict
instead ofkeyfile
by @JoeSham in #352 - Resolve MyPy errors in Cosmos pre-commit by @abhi12mohan in #377
- Ignore
.user.yml
files by @tatiana in #386 - ⬆ [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #388
- **[BREAKING]**Initial implementation of simplifying config interfaces by @jlaneve in #389
- Support user-supplied profiles by @jlaneve in #390
- Update README.rst by @harels in #394
- bump version to 1.0.0 by @harels in #395
New Contributors
- @MonideepDe made their first contribution in #367
- @JoeSham made their first contribution in #352
- @abhi12mohan made their first contribution in #377
Full Changelog: astronomer-cosmos-v0.7.5...astronomer-cosmos-v1.0.0