[CT-3299] [SL] Support Hierarchical Configs for Saved Queries and their Exports #8956
Closed
1 task done
Labels
backport 1.7.latest
Impact: SL
semantic
Issues related to the semantic layer
user docs
[docs.getdbt.com] Needs better documentation
Housekeeping
Short description
In #8950 we added
Exports
toSavedQueries
.Exports
have configs and we want these configs to be setable from a project'sdbt_project.yml
, i.e. hierarchical. Originally this work was to be part of #8892 in #8950, however due to deadlines and some pesky edge cases, we separated out this work. With that said, we've thought through (and tried some) approachesExports
Export
a node type (but don't put it in the DAG), and then use calculate_node_config to generate the configcalculate_node_config
except the config class getter into a separate function which would then be called bycalculate_node_config
and directly from the export parsingWe haven't attempted option (1) because it seemed wrong to write a whole bunch of bespoke code for this. Options (2) and (3) suffer from an issue where-in the
ExportConfig
has aschema_name
attr, but theUnparsedExportConfig
usesschema
(this is necessary for other reasons). Additionally option (2) would make an export a pseudo node, which we don't want to do unintentionally.As it stands it seems like there are two paths forward: option (3) but use the
UnrenderedExportConfig
during the config generation process and then after the fact map things to theExportConfig
or a forth option would be to refactor our config parsing process to be less clever.Acceptance criteria
We have implemented a way for
Export
configs to be set hierarchically AND it is testedImpact to Other Teams
Semantic Layer, maybe also Cloud Artifacts?
Will backports be required?
Yes 1.7
Context
No response
The text was updated successfully, but these errors were encountered: