-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
feat: add group_by to fetch_page #2140
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2140 +/- ##
==========================================
+ Coverage 58.53% 58.63% +0.09%
==========================================
Files 61 61
Lines 9187 9193 +6
==========================================
+ Hits 5378 5390 +12
+ Misses 3809 3803 -6 ☔ View full report in Codecov by Sentry. |
Please add some unit tests. |
3aac26e
to
16954ab
Compare
Can we please have one small test for |
added tests |
9594a86
to
72e08f3
Compare
@@ -179,16 +179,27 @@ async def fetch_page( | |||
values: Optional[List[str]] = None, | |||
filters: Optional[Filters] = None, | |||
model: Optional[Type[TRowModel]] = None, | |||
group_by: Optional[List[str]] = None, |
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.
The users need to know that they have to add an aggregator function (max
, count
, etc) when using group_by
. Otherwise the query execution will fail.
Can this requirement be documented somewhere?
53b636f
to
c093440
Compare
c093440
to
d991538
Compare
feature is required by #2139