Page MenuHomeElementl

Smarter dbt default argument handling
ClosedPublic

Authored by owen on Jul 28 2021, 3:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 16, 6:05 AM
Unknown Object (File)
Sat, Mar 11, 12:05 AM
Unknown Object (File)
Sat, Mar 11, 12:05 AM
Unknown Object (File)
Sat, Mar 11, 12:05 AM
Unknown Object (File)
Sat, Mar 11, 12:05 AM
Unknown Object (File)
Thu, Mar 9, 2:43 PM
Unknown Object (File)
Wed, Mar 1, 2:09 AM
Unknown Object (File)
Feb 11 2023, 9:28 PM
Subscribers
None

Details

Summary

The original implementation made every single default flag go through to every single command (because of version drift between dbt and us, we'll never know the exact set of valid flags for a given command). However, there are some common flags that we can be a bit smarter about. In particular, models, select, and exclude are well-defined and unlikely to change. With this change, if any of these are present in the default flag set, but NOT present in the function signature (e.g. run-operation does not take any of these arguments), they will not be forwarded.

I also updated the tests to use the new direct invocation stuff.

Slack link: https://dagster.slack.com/archives/C01U954MEER/p1627477307097100

Test Plan

bk

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable