-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve granularity for partial time dimensions
- Loading branch information
1 parent
cda9a52
commit 5f331f1
Showing
7 changed files
with
229 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...test_dataflow_plan_builder.py/DataflowPlan/test_distinct_values_plan_with_join__dfp_0.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<DataflowPlan> | ||
<WriteToResultDataframeNode> | ||
<!-- description = Write to Dataframe --> | ||
<!-- node_id = wrd_0 --> | ||
<OrderByLimitNode> | ||
<!-- description = Order By ['listing__country_latest'] Limit 100 --> | ||
<!-- node_id = obl_0 --> | ||
<!-- order_by_spec = --> | ||
<!-- {'class': 'OrderBySpec', --> | ||
<!-- 'descending': True, --> | ||
<!-- 'metric_spec': None, --> | ||
<!-- 'dimension_spec': {'class': 'DimensionSpec', --> | ||
<!-- 'element_name': 'country_latest', --> | ||
<!-- 'entity_links': ({'class': 'EntityReference', --> | ||
<!-- 'element_name': 'listing'},)}, --> | ||
<!-- 'time_dimension_spec': None, --> | ||
<!-- 'entity_spec': None} --> | ||
<!-- limit = 100 --> | ||
<WhereConstraintNode> | ||
<!-- description = Constrain Output with WHERE --> | ||
<!-- node_id = wcc_0 --> | ||
<!-- where_condition = --> | ||
<!-- {'class': 'WhereFilterSpec', --> | ||
<!-- 'where_sql': "listing__country_latest = 'us'", --> | ||
<!-- 'bind_parameters': {'class': 'SqlBindParameters', 'param_items': ()}, --> | ||
<!-- 'linkable_spec_set': {'class': 'LinkableSpecSet', --> | ||
<!-- 'dimension_specs': ({'class': 'DimensionSpec', --> | ||
<!-- 'element_name': 'country_latest', --> | ||
<!-- 'entity_links': ({'class': 'EntityReference', --> | ||
<!-- 'element_name': 'listing'},)},), --> | ||
<!-- 'time_dimension_specs': (), --> | ||
<!-- 'entity_specs': ()}} --> | ||
<FilterElementsNode> | ||
<!-- description = --> | ||
<!-- Pass Only Elements: --> | ||
<!-- ['user__home_state_latest', 'listing__is_lux_latest'] --> | ||
<!-- node_id = pfe_1 --> | ||
<!-- include_spec = --> | ||
<!-- {'class': 'DimensionSpec', --> | ||
<!-- 'element_name': 'home_state_latest', --> | ||
<!-- 'entity_links': ({'class': 'EntityReference', 'element_name': 'user'},)} --> | ||
<!-- include_spec = --> | ||
<!-- {'class': 'DimensionSpec', --> | ||
<!-- 'element_name': 'is_lux_latest', --> | ||
<!-- 'entity_links': ({'class': 'EntityReference', 'element_name': 'listing'},)} --> | ||
<!-- distinct = True --> | ||
<JoinToBaseOutputNode> | ||
<!-- description = Join Standard Outputs --> | ||
<!-- node_id = jso_0 --> | ||
<!-- join0_for_node_id_pfe_0 = --> | ||
<!-- {'class': 'JoinDescription', --> | ||
<!-- 'join_node': FilterElementsNode(node_id=pfe_0), --> | ||
<!-- 'join_on_entity': {'class': 'LinklessEntitySpec', --> | ||
<!-- 'element_name': 'user', --> | ||
<!-- 'entity_links': ()}, --> | ||
<!-- 'join_on_partition_dimensions': (), --> | ||
<!-- 'join_on_partition_time_dimensions': (), --> | ||
<!-- 'validity_window': None} --> | ||
<ReadSqlSourceNode> | ||
<!-- description = --> | ||
<!-- Read From SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest')) --> | ||
<!-- node_id = rss_10004 --> | ||
<!-- data_set = --> | ||
<!-- SemanticModelDataSet(SemanticModelReference(semantic_model_name='listings_latest')) --> | ||
</ReadSqlSourceNode> | ||
<FilterElementsNode> | ||
<!-- description = --> | ||
<!-- Pass Only Elements: --> | ||
<!-- ['home_state_latest', 'user'] --> | ||
<!-- node_id = pfe_0 --> | ||
<!-- include_spec = --> | ||
<!-- {'class': 'DimensionSpec', --> | ||
<!-- 'element_name': 'home_state_latest', --> | ||
<!-- 'entity_links': ()} --> | ||
<!-- include_spec = LinklessEntitySpec(element_name='user', entity_links=()) --> | ||
<!-- distinct = False --> | ||
<ReadSqlSourceNode> | ||
<!-- description = --> | ||
<!-- Read From SemanticModelDataSet(SemanticModelReference(semantic_model_name='users_latest')) --> | ||
<!-- node_id = rss_10008 --> | ||
<!-- data_set = --> | ||
<!-- SemanticModelDataSet(SemanticModelReference(semantic_model_name='users_latest')) --> | ||
</ReadSqlSourceNode> | ||
</FilterElementsNode> | ||
</JoinToBaseOutputNode> | ||
</FilterElementsNode> | ||
</WhereConstraintNode> | ||
</OrderByLimitNode> | ||
</WriteToResultDataframeNode> | ||
</DataflowPlan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.