-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: all parameters in `query` and `compile_sql` The tests for `query` and `compile_sql` did not test all allowed parameters, which made the `order_by` bug go unnoticed. This commit fixes that by adding all the remaining parameters to the tests. Note that this commit is in a broken state since the fix hasn't been applied yet. That will come in a future patch. * refactor: better internal repr of query params This commit improves our validation and representation of query parameters, and fixes the bug with `order_by`. We're still in an inconsistent state: we gotta propagate the changes and use them in other classes. Will do that in the following patch. * refactor: make protocols use the new validations This commit makes the ADBC and GraphQL protocol implementations use the new stricter representation for query params. It updates the tests accordingly. * refactor: typing public interfaces with order by This commit updates the public `.pyi` files to ensure we use the new order by spec * docs: changelog Added changelog entries related to the order by changes.
- Loading branch information
1 parent
992eb90
commit 9896a1c
Showing
15 changed files
with
380 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Breaking Changes | ||
body: '`order_by` clause of queries using saved queries no longer support string inputs and require explicit `OrderByMetric` or `OrderByGroupBy`' | ||
time: 2024-10-01T16:09:46.752151+02:00 |
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,3 @@ | ||
kind: Features | ||
body: Specifying order by with `OrderByMetric` and `OrderByGroupBy` | ||
time: 2024-10-01T15:55:22.041799+02:00 |
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,3 @@ | ||
kind: Fixes | ||
body: Order by for `compile_sql` now works as expected | ||
time: 2024-10-01T15:54:48.740022+02:00 |
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,3 @@ | ||
kind: Under the Hood | ||
body: Improved internal representation of query parameters and added better validation | ||
time: 2024-10-01T15:55:44.855697+02:00 |
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
Oops, something went wrong.