[CT-1130] [Feature] Update Metric Spec With Clearer Names #5774
Labels
enhancement
New feature or request
help_wanted
Trickier changes, with a clear starting point, good for previous/experienced contributors
semantic
Issues related to the semantic layer
Milestone
Is this your first time submitting a feature request?
Describe the feature
Technically a duplicate of this issue #4325
Right now, we have two fields within the metric spec whose names don't perfectly match what they are trying to convey.
sql
: this attribute represents the sql expression that will be aggregated. It can be a simple field (user_id) or more complicated (case when x > y then x else y end)type
: this attribute represents the calculation / aggregation method that we are performing on the expression.Proposed Change
As such, I propose the following changes:
type
tocalculation_method
.sql
toexpression
measure
- this would build off the prior art of a lot of BI tools.expression
type metrics toderived
metricsOld format
New format
Let me know what y'all think!
Describe alternatives you've considered
Not changing this.
Who will this benefit?
Anyone who uses metrics!
Are you interested in contributing this feature?
Yep! Already scoping it out in a PR
Anything else?
No response
The text was updated successfully, but these errors were encountered: