Skip to content

Commit 54e13c8

Browse files
committed
Add more aggregation query functions
The min and max aggregrate functions has been supported.
1 parent 53a1c7b commit 54e13c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sqlalchemy_datastore/datastore_dbapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ def _is_aggregation_query(self, statement: str) -> bool:
454454
r"\bCOUNT_UP_TO\s*\(",
455455
r"\bSUM\s*\(",
456456
r"\bAVG\s*\(",
457+
r"\bMIN\s*\(",
458+
r"\bMAX\s*\(",
457459
]
458460
for pattern in agg_patterns:
459461
if re.search(pattern, upper):

0 commit comments

Comments
 (0)