lakeflow_framework
lakeflow_framework copied to clipboard
[FEATURE]: Optional global_defaults for template parameter_sets
Is there an existing issue for this?
- [x] I have searched the existing issues
Problem statement
Template instantiation specs repeat the same parameter values on every parameter_sets entry (schema names, keys, shared paths, etc.). That makes large customer packs noisy and error-prone without changing runtime behavior.
Proposed Solution
Add an optional top-level global_defaults object on the template usage spec (spec_template.json):
- Omitted → current behavior
- Present → each set is expanded as
{**global_defaults, **parameter_set}(per-set wins) - Template definition
defaultvalues still apply afterward for optional params not supplied by either layer
Update template docs and unit tests for apply, override, omit, and invalid types.
Additional Context
- Preferred name over
parameters/shared_parametersto avoid colliding with template definitionparametersand to signal optional defaults - Pre-expand filtering of parameter sets (e.g. by parameterized
dataFlowGroup) is intentionally out of scope for this change