dbt-labs / dbt-labs/metricflow

[Bug] config block doesn't work with Measures

Open
#1,811 0 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
Python
Stars
1.8k
Forks
202
Avg merge
1d 8h
Merged PRs (30d)
14

Description

### Is this a new bug in metricflow?

- [x] I believe this is a new bug in metricflow
- [x] I have searched the existing issues, and I could not find an existing issue for this bug

### Current Behavior

While using config block in measures, dbt parse fails with Additional properties are not allowed ('config' was unexpected)
```
- name: revenue
config:
meta:
Business_Owner: ASAR
Technical_Owner: Sales Data Services
expr: revenue
agg: sum
create_metric: true
description: revenue
```

### Expected Behavior

As per documentation, https://docs.getdbt.com/docs/build/measures config block is supported

### Steps To Reproduce

Look at the above

### Relevant log output

```shell

```

### Environment

```markdown
- OS: Mac
- Python: 3.12
- dbt:1.9.8
- metricflow: 0.8.1
```

### Which database are you using?

other (mention it in "Additional Context")

### Additional Context

Trino

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.