-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement
group_by_columns
argument for relevant tests (#633)
* Extend testing macros with group_by_columns arg * Add integration tests for group_by_columns macro args * Seed tests for group_by_columns arg in test macros * Describe group_by_columns enhancement in CHANGELOG * Add integrations tests for fewer_rows_than macro * change fake data in test_recency to numeric * fix changelog typo * whitespace after commas * remove id column added just for join * remove outer keyword from full join * use explicit fake join keys for equal_rowcount and fewer_rows_than * document grouping feature in README * fix join key name for consistency with macro name (cosmetic change) * Use more descriptive group_by_columns README example Co-authored-by: Joel Labes <[email protected]> * Fix code comment typo in fewer_rows_than Co-authored-by: Joel Labes <[email protected]> Co-authored-by: Joel Labes <[email protected]>
- Loading branch information
1 parent
a976cdf
commit ed47585
Showing
17 changed files
with
244 additions
and
50 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
8 changes: 4 additions & 4 deletions
8
integration_tests/data/schema_tests/data_test_fewer_rows_than_table_1.csv
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
field | ||
1 | ||
2 | ||
3 | ||
col_a,field | ||
1,1 | ||
1,2 | ||
1,3 |
10 changes: 5 additions & 5 deletions
10
integration_tests/data/schema_tests/data_test_fewer_rows_than_table_2.csv
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
field | ||
1 | ||
2 | ||
3 | ||
4 | ||
col_a,field | ||
1,1 | ||
1,2 | ||
1,3 | ||
1,4 |
8 changes: 4 additions & 4 deletions
8
integration_tests/data/schema_tests/data_test_not_constant.csv
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
field | ||
1 | ||
1 | ||
2 | ||
col_a,field | ||
1,1 | ||
1,1 | ||
1,2 |
12 changes: 6 additions & 6 deletions
12
integration_tests/data/schema_tests/data_test_sequential_values.csv
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
my_even_sequence | ||
2 | ||
4 | ||
6 | ||
8 | ||
10 | ||
col_a,my_even_sequence | ||
1,2 | ||
1,4 | ||
1,6 | ||
2,8 | ||
2,10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ with data as ( | |
) | ||
|
||
select | ||
field | ||
col_a, field | ||
from data |
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
Oops, something went wrong.