-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assorted Naming and Type Fixes #187
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,13 +46,13 @@ def post_aggregation_measure_reference(self) -> MeasureReference: | |
|
||
@property | ||
@abstractmethod | ||
def join_to_timespine(self) -> bool: | ||
"""If the measure should be joined to the timespine.""" | ||
def time_spine_join(self) -> bool: | ||
"""If the measure should be joined to the time spine.""" | ||
pass | ||
|
||
@property | ||
@abstractmethod | ||
def fill_nulls_with(self) -> Optional[int]: | ||
def null_fill_value(self) -> Optional[float]: | ||
Comment on lines
+49
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are hard breaking changes on the dbt-core parser so we can't push these into dbt-semantic-interfaces or take dependencies on these names in MetricFlow if we want to be able to backport things. It's fine to add duplicate fields with the new names, and once we get support for both broadly available across the releases we are committed to supporting we can gradually remove the old ones, but given that 1) these names were chosen within the context of existing dbt metrics nomenclature and 2) they're now out in the world I'm not sure this adjustment is worth the effort. |
||
"""What null values should be filled with if set.""" | ||
pass | ||
|
||
|
@@ -102,7 +102,7 @@ def offset_to_grain(self) -> Optional[TimeGranularity]: # noqa: D | |
|
||
@property | ||
@abstractmethod | ||
def as_reference(self) -> MetricReference: | ||
def metric_reference(self) -> MetricReference: | ||
"""Property accessor to get the MetricReference associated with this metric input.""" | ||
... | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we tried this float caused problems when the actual value is supposed to be an int.
In a perfect world we could do
int | float
but that doesn't appear to resolve correctly and we haven't figured out how to deal with it.