Skip to content

Commit

Permalink
Add snapshots for ambiguous entity path.
Browse files Browse the repository at this point in the history
  • Loading branch information
plypaul committed Jan 10, 2024
1 parent 5bff396 commit 9cf7d5f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
MetricFlowQuerySpec(
metric_specs=(MetricSpec(element_name='entity_1_metric'),),
dimension_specs=(
DimensionSpec(
element_name='country',
entity_links=(EntityReference(element_name='entity_1'), EntityReference(element_name='entity_0')),
),
),
filter_intersection=PydanticWhereFilterIntersection(),
filter_spec_resolution_lookup=FilterSpecResolutionLookUp(),
min_max_only=False,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
('Got errors while resolving the query.\n'
'\n'
'Error #1:\n'
' Message:\n'
'\n'
" The given input is ambiguous and can't be resolved. The input could match:\n"
'\n'
" ['entity_1__entity_0__country', 'entity_2__entity_0__country']\n"
'\n'
' Query Input:\n'
'\n'
' entity_0__country\n'
'\n'
' Issue Location:\n'
'\n'
" [Resolve Query(['entity_1_and_entity_2_metric'])]")

0 comments on commit 9cf7d5f

Please sign in to comment.