[SL-1450] [Bug] Optimizer Does Not Deduplicate Common Metrics #941
Labels
bug
Something isn't working
High priority
Created by Linear-GitHub Sync
triage
Tasks that need to be triaged
Is this a new bug in metricflow?
Current Behavior
If a query includes multiple derived metrics that use a common metric, the optimizer currently does not deduplicate those metrics when combining metric computation branches. If those metrics are not deduplicated, then the resulting SQL will have a column alias error. See: f4691d7#diff-6beb9d2e40a8992c43163d08246fc08088cef8b29bdc6c3ff17b6c173f0f7514R22
Expected Behavior
Common metrics should be deduplicated. See 9fa4aaf#diff-6beb9d2e40a8992c43163d08246fc08088cef8b29bdc6c3ff17b6c173f0f7514L32
Steps To Reproduce
See: f4691d7
Relevant log output
No response
Environment
Which database are you using?
No response
Additional Context
No response
From SyncLinear.com | SL-1450
The text was updated successfully, but these errors were encountered: