fix: Postrgres group aggregation#6522
Conversation
|
@srameshr Can you add tests? |
|
@dplewis There are already tests for group by, limit, sort, where. My changes do not affect the existing tests. Also all our local code works and returns the right values. So, I assume we do not need tests for this one. |
|
|
||
| const qs = `SELECT ${columns | ||
| .filter(Boolean) | ||
| .join()} FROM $1:name ${wherePattern} ${skipPattern} ${groupPattern} ${sortPattern} ${limitPattern}`; |
There was a problem hiding this comment.
Can you explain the problem you are trying to fix? Just so we can determine if there are side-effects.
There was a problem hiding this comment.
@dplewis
The queries used to fail when * was used with GROUPBY operators and the order of few operators where off when GROUPBY was present.
There was a problem hiding this comment.
@dplewis
Can you please merge this? All the existing test cases that was there to handle groupBy and other conditions are working as it sits.
|
@srameshr Sorry for the late reply. Can you resolve the conflict so that we can get this into the next release? |
My guess is it's conflicting with the code I added in #6506 because we were editing the same method/lines (note, I'm not able to see the conflict, so I'm guessing). @srameshr if this is the case, then the conflict is somewhere around this line: You code: Should be added before the line I mentioned above and that should resolve the conflict (if that's really the conflict) with everything still working. Let me know if that helps. |
|
@cbaker6 Are your changes in master? |
|
@cbaker6 I did lint. Its a pre commit hook that automatically runs |
…e-server into postgres-group-aggregation
Codecov Report
@@ Coverage Diff @@
## master #6522 +/- ##
==========================================
- Coverage 93.91% 93.90% -0.01%
==========================================
Files 169 169
Lines 11963 11968 +5
==========================================
+ Hits 11235 11239 +4
- Misses 728 729 +1
Continue to review full report at Codecov.
|
|
@cbaker6 |
Are you doing |
|
@cbaker6 |
|
@dplewis Any timeline as to when the next release will be? Could you do it this week? |
No description provided.