Bug Description
When using manage_metric_views with the create action and a comment field, the generated YAML places comment before source, causing a parse error:
METRIC_VIEW_INVALID_VIEW_DEFINITION: Missing required creator property 'source' (index 1)
Steps to Reproduce
Use manage_metric_views with create action including a comment field.
Actual Behavior
Generated YAML has incorrect field ordering:
version: 1.1
comment: "..."
source: catalog.schema.table
The parser expects source as the 2nd field (index 1), but comment appears there instead.
Expected Behavior
version: 1.1
source: catalog.schema.table
comment: "..."
Workaround
Using execute_sql with raw YAML (manually specifying correct field order) works as expected.
Bug Description
When using
manage_metric_viewswith thecreateaction and acommentfield, the generated YAML placescommentbeforesource, causing a parse error:Steps to Reproduce
Use
manage_metric_viewswithcreateaction including acommentfield.Actual Behavior
Generated YAML has incorrect field ordering:
The parser expects
sourceas the 2nd field (index 1), butcommentappears there instead.Expected Behavior
Workaround
Using
execute_sqlwith raw YAML (manually specifying correct field order) works as expected.