Skip to content

Commit

Permalink
updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDee committed Nov 3, 2023
1 parent 00d9a76 commit c804c2e
Show file tree
Hide file tree
Showing 27 changed files with 181 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- test0
SELECT
a.booking_value
FROM (
-- test1
SELECT DISTINCT
a.booking_value
, a.bookings
FROM demo.fct_bookings a
) b
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- test0
SELECT
a.booking_value
FROM (
-- test1
SELECT DISTINCT
a.booking_value
, a.bookings
FROM demo.fct_bookings a
) b
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- 'column_alias': 'bookings'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_3) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Aggregate Measures -->
<!-- node_id = ss_3 -->
Expand All @@ -41,6 +42,7 @@
<!-- 'expr': SqlColumnReferenceExpression(node_id=cr_10), -->
<!-- 'column_alias': 'listing__country_latest'} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = ss_2 -->
Expand All @@ -64,6 +66,7 @@
<!-- 'join_type': SqlJoinType.LEFT_OUTER, -->
<!-- 'on_condition': SqlComparisonExpression(node_id=cmp_0)} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -79,6 +82,7 @@
<!-- 'column_alias': 'bookings'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'bookings_source' -->
<!-- node_id = ss_10001 -->
Expand Down Expand Up @@ -436,6 +440,7 @@
<!-- 'column_alias': 'booking__host'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.fct_bookings -->
<!-- node_id = tfc_10001 -->
Expand All @@ -458,6 +463,7 @@
<!-- 'column_alias': 'country_latest'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'listings_latest' -->
<!-- node_id = ss_10004 -->
Expand Down Expand Up @@ -687,6 +693,7 @@
<!-- 'column_alias': 'listing__user'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.dim_listings_latest -->
<!-- node_id = tfc_10004 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- 'column_alias': 'bookings_per_view'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_23) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Combine Metrics -->
<!-- node_id = ss_23 -->
Expand Down Expand Up @@ -43,6 +44,7 @@
<!-- 'join_type': SqlJoinType.INNER, -->
<!-- 'on_condition': SqlLogicalExpression(node_id=lo_4)} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Compute Metrics via Expressions -->
<!-- node_id = ss_14 -->
Expand All @@ -60,6 +62,7 @@
<!-- 'column_alias': 'bookings'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_13) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Aggregate Measures -->
<!-- node_id = ss_13 -->
Expand All @@ -85,6 +88,7 @@
<!-- 'expr': SqlColumnReferenceExpression(node_id=cr_628), -->
<!-- 'column_alias': 'listing__country_latest'} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -104,6 +108,7 @@
<!-- 'column_alias': 'bookings'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_11) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = ss_11 -->
Expand Down Expand Up @@ -131,6 +136,7 @@
<!-- 'join_type': SqlJoinType.LEFT_OUTER, -->
<!-- 'on_condition': SqlComparisonExpression(node_id=cmp_0)} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -150,6 +156,7 @@
<!-- 'column_alias': 'bookings'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_7) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = ss_7 -->
Expand Down Expand Up @@ -547,6 +554,7 @@
<!-- 'column_alias': 'approximate_discrete_booking_value_p99'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'bookings_source' -->
<!-- node_id = ss_10001 -->
Expand Down Expand Up @@ -904,6 +912,7 @@
<!-- 'column_alias': 'booking__host'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.fct_bookings -->
<!-- node_id = tfc_10001 -->
Expand All @@ -927,6 +936,7 @@
<!-- 'column_alias': 'country_latest'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_9) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = ss_9 -->
Expand Down Expand Up @@ -1200,6 +1210,7 @@
<!-- 'column_alias': 'smallest_listing'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'listings_latest' -->
<!-- node_id = ss_10004 -->
Expand Down Expand Up @@ -1429,6 +1440,7 @@
<!-- 'column_alias': 'listing__user'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.dim_listings_latest -->
<!-- node_id = tfc_10004 -->
Expand Down Expand Up @@ -1458,6 +1470,7 @@
<!-- 'column_alias': 'views'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_21) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Aggregate Measures -->
<!-- node_id = ss_21 -->
Expand All @@ -1483,6 +1496,7 @@
<!-- 'expr': SqlColumnReferenceExpression(node_id=cr_775), -->
<!-- 'column_alias': 'listing__country_latest'} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -1502,6 +1516,7 @@
<!-- 'column_alias': 'views'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_19) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = ss_19 -->
Expand Down Expand Up @@ -1529,6 +1544,7 @@
<!-- 'join_type': SqlJoinType.LEFT_OUTER, -->
<!-- 'on_condition': SqlComparisonExpression(node_id=cmp_1)} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -1548,6 +1564,7 @@
<!-- 'column_alias': 'views'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_15) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = ss_15 -->
Expand Down Expand Up @@ -1793,6 +1810,7 @@
<!-- 'column_alias': 'views'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10009) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'views_source' -->
<!-- node_id = ss_10009 -->
Expand Down Expand Up @@ -1994,6 +2012,7 @@
<!-- 'column_alias': 'view__user'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10009) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.fct_views -->
<!-- node_id = tfc_10009 -->
Expand All @@ -2017,6 +2036,7 @@
<!-- 'column_alias': 'country_latest'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_17) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Metric Time Dimension 'ds' -->
<!-- node_id = ss_17 -->
Expand Down Expand Up @@ -2290,6 +2310,7 @@
<!-- 'column_alias': 'smallest_listing'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'listings_latest' -->
<!-- node_id = ss_10004 -->
Expand Down Expand Up @@ -2519,6 +2540,7 @@
<!-- 'column_alias': 'listing__user'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.dim_listings_latest -->
<!-- node_id = tfc_10004 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<!-- 'column_alias': 'bookings_per_booker'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_3) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Aggregate Measures -->
<!-- node_id = ss_3 -->
Expand Down Expand Up @@ -45,6 +46,7 @@
<!-- 'expr': SqlColumnReferenceExpression(node_id=cr_13), -->
<!-- 'column_alias': 'listing__country_latest'} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Join Standard Outputs -->
<!-- node_id = ss_2 -->
Expand Down Expand Up @@ -72,6 +74,7 @@
<!-- 'join_type': SqlJoinType.LEFT_OUTER, -->
<!-- 'on_condition': SqlComparisonExpression(node_id=cmp_0)} -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = -->
<!-- Pass Only Elements: -->
Expand All @@ -91,6 +94,7 @@
<!-- 'column_alias': 'bookers'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'bookings_source' -->
<!-- node_id = ss_10001 -->
Expand Down Expand Up @@ -448,6 +452,7 @@
<!-- 'column_alias': 'booking__host'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10001) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.fct_bookings -->
<!-- node_id = tfc_10001 -->
Expand All @@ -470,6 +475,7 @@
<!-- 'column_alias': 'country_latest'} -->
<!-- from_source = SqlSelectStatementNode(node_id=ss_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlSelectStatementNode>
<!-- description = Read Elements From Semantic Model 'listings_latest' -->
<!-- node_id = ss_10004 -->
Expand Down Expand Up @@ -699,6 +705,7 @@
<!-- 'column_alias': 'listing__user'} -->
<!-- from_source = SqlTableFromClauseNode(node_id=tfc_10004) -->
<!-- where = None -->
<!-- distinct = False -->
<SqlTableFromClauseNode>
<!-- description = Read from ***************************.dim_listings_latest -->
<!-- node_id = tfc_10004 -->
Expand Down
Loading

0 comments on commit c804c2e

Please sign in to comment.