lakeflow_framework icon indicating copy to clipboard operation
lakeflow_framework copied to clipboard

[FEATURE]: Optional global_defaults for template parameter_sets

Open rederik76 opened this issue 1 month ago • 0 comments

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 default values 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_parameters to avoid colliding with template definition parameters and to signal optional defaults
  • Pre-expand filtering of parameter sets (e.g. by parameterized dataFlowGroup) is intentionally out of scope for this change

rederik76 avatar Oct 14 '26 12:10 rederik76