Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More consistent Query.length (“COUNT(*)”) semantics:
Counting any multi-column collection is now interpreted as COUNT(1), i.e. it ignores nullability of the columns. The previous approach of picking a random column led to inconsistent results. Note that this changes the semantics of counting only one side of an outer join, where the previous goal was not to include non-matching rows in the total (equivalent to counting the discriminator column). This does not make sense anymore for the new outer join operators with correct Option types. The new semantics are identical to those of Scala collections. The old semantics remain for counts of single columns for now. New test in CountTest.testTableCount, modified results for q6 in AggregateTest.testGroupBy to reflect the new semantics. Fixes #1237.
- Loading branch information
Showing
5 changed files
with
36 additions
and
10 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
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