Skip to content

Commit

Permalink
added reserved keyword for generated uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Dec 8, 2022
1 parent d9891c4 commit 3d62dd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metricflow/model/validations/unique_valid_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class MetricFlowReservedKeywords(enum.Enum):
"""Enumeration of reserved keywords with helper for accessing the reason they are reserved"""

METRIC_TIME = "metric_time"
MF_INTERNAL_UUID = "mf_internal_uuid"

@staticmethod
def get_reserved_reason(keyword: MetricFlowReservedKeywords) -> str:
Expand All @@ -44,6 +45,8 @@ def get_reserved_reason(keyword: MetricFlowReservedKeywords) -> str:
"Used as the query input for creating time series metrics from measures with "
"different time dimension names."
)
elif keyword is MetricFlowReservedKeywords.MF_INTERNAL_UUID:
return "Used internally to reference a column that has a uuid generated by MetricFlow."
else:
assert_values_exhausted(keyword)

Expand Down

0 comments on commit 3d62dd5

Please sign in to comment.