Repository navigation
feat(compliance): add Layer 3 B.6 fan-out cases and polish B.6 #742
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
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "fixture": "stores", | ||
| "title": "A store's headcount counts once, however many sales it has", | ||
| "question": "What is the sales amount per employee?", | ||
| "behavior": "store_productivity has a component on store_sales and one on store, each in its own branch: 415 / (5 + 5) = 41.5. Over a join from store_sales to store, S1's headcount counts once per sale (3 x 5 + 2 x 5 = 25) and gives 16.6. Summing distinct headcounts counts the shared value 5 once and gives 83. Appendix B.6.", | ||
| "spec": ["5.2", "5.4", "5.5", "B.6"], | ||
| "columns": ["store_productivity"], | ||
| "rows": [ | ||
| [41.5] | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "metrics": ["store_productivity"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "fixture": "stores", | ||
| "title": "Each group counts a store's headcount once", | ||
| "question": "What is the sales amount per employee by store state?", | ||
| "behavior": "Both components reach store, so each branch groups by state. CA has sales of 325 (SS1, SS2, SS4) and 5 employees, NY has 90 (SS3, SS5) and 5. Over a join from store_sales to store, CA's headcount counts three times and gives 325 / 15. Appendix B.6.", | ||
|
Member
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. Each state has one store, so |
||
| "spec": ["5.2", "5.3", "5.4", "5.5", "B.6"], | ||
| "columns": ["state", "store_productivity"], | ||
| "rows": [ | ||
| ["CA", 65], | ||
| ["NY", 18] | ||
|
Comment on lines
+9
to
+10
Member
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.
As written, a23 gets zero tolerance on a floating-point division, and an engine one ULP off 65.0 fails a case that is semantically correct. a22 in this PR has it right with 41.5, as does a08 with 162.5. |
||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "dimensions": ["store.state"], | ||
| "metrics": ["store_productivity"] | ||
| } |
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.
Since #741 and #747, each case that returns rows has an
expected.txt, aquery.ossie.sqlwith the Layer 2 query of its lowering, and an entry incases/README.md.a22anda23still haveexpected.jsonand none of the three. Could the rebase convert them (a08has a two-branch lowering to start from)?