-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(server): count null values as well in
count
aggregation [TCTC-9…
…967] (#2315) * fix(server/pandas): count null values as well in count aggreggation [TCTC-9967] * fix(server/pypika): count null values as well in count distinct aggregation * fix: enforce ASC NULLS LAST for aggregate step ORDER BY --------- Signed-off-by: Luka Peschke <[email protected]>
- Loading branch information
1 parent
031f919
commit 39d5d00
Showing
7 changed files
with
143 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
exclude: | ||
- athena_pypika | ||
- bigquery_pypika | ||
- mysql_pypika | ||
- postgres_pypika | ||
- redshift_pypika | ||
- snowflake_pypika | ||
step: | ||
pipeline: | ||
- aggregations: | ||
- aggfunction: count | ||
columns: | ||
- VALUE | ||
newcolumns: | ||
- VALUE_COUNT | ||
keepOriginalGranularity: false | ||
name: aggregate | ||
'on': | ||
- VALUE | ||
input: | ||
data: | ||
- VALUE: one | ||
- VALUE: two | ||
- VALUE: null | ||
- VALUE: one | ||
- VALUE: null | ||
- VALUE: one | ||
schema: | ||
fields: | ||
- name: VALUE | ||
type: string | ||
pandas_version: 1.4.0 | ||
expected: | ||
data: | ||
- VALUE: one | ||
VALUE_COUNT: 3 | ||
- VALUE: two | ||
VALUE_COUNT: 1 | ||
- VALUE: null | ||
VALUE_COUNT: 2 | ||
schema: | ||
fields: | ||
- name: VALUE | ||
type: string | ||
- name: VALUE_COUNT | ||
type: integer | ||
pandas_version: 1.4.0 |
41 changes: 41 additions & 0 deletions
41
server/tests/backends/fixtures/aggregate/count_nulls_pypika.yaml
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,41 @@ | ||
exclude: | ||
- mongo | ||
- pandas | ||
- snowflake | ||
step: | ||
pipeline: | ||
- aggregations: | ||
- aggfunction: count | ||
columns: | ||
- nullable_name | ||
newcolumns: | ||
- nullable_name_count | ||
keepOriginalGranularity: false | ||
name: aggregate | ||
'on': | ||
- nullable_name | ||
expected: | ||
data: | ||
- nullable_name: Ardwen Blonde | ||
nullable_name_count: 1 | ||
- nullable_name: Bellfield Lawless Village IPA | ||
nullable_name_count: 1 | ||
- nullable_name: Brewdog Nanny State Alcoholvrij | ||
nullable_name_count: 1 | ||
- nullable_name: Brugse Zot blonde | ||
nullable_name_count: 1 | ||
- nullable_name: Ninkasi Ploploplop | ||
nullable_name_count: 1 | ||
- nullable_name: Pauwel Kwak | ||
nullable_name_count: 1 | ||
- nullable_name: Weihenstephan Hefe Weizen Alcoholarm | ||
nullable_name_count: 1 | ||
- nullable_name: null | ||
nullable_name_count: 3 | ||
schema: | ||
fields: | ||
- name: nullable_name | ||
type: string | ||
- name: nullable_name_count | ||
type: integer | ||
pandas_version: 1.4.0 |
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