Skip to content

Commit

Permalink
Fixes to graphql upload counts queries (#183)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt B Krystof <[email protected]>
  • Loading branch information
mkrystof and Matt B Krystof committed Sep 6, 2024
1 parent 5fd7604 commit e1e010f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class UploadStatsLoader: CosmosLoader() {
val inProgressUploadsCountQuery = (
"select value count(1) "
+ "from r "
+ "where r.dataStreamId = '$dataStreamId' and r.dataStreamRoute = 'dataStreamRoute' and "
+ "where r.dataStreamId = '$dataStreamId' and r.dataStreamRoute = '$dataStreamRoute' and "
+ "r.stageInfo.service = 'UPLOAD API' and r.stageInfo.action = 'upload-status' and "
+ "r.content['offset'] < r.content['size'] and $timeRangeWhereClause"
)
Expand All @@ -65,7 +65,7 @@ class UploadStatsLoader: CosmosLoader() {
"select * from "
+ "(select r.content.metadata.received_filename, count(1) as totalCount "
+ "from r "
+ "where r.dataStreamId = '$dataStreamId' and r.dataStreamRoute = 'dataStreamRoute' and "
+ "where r.dataStreamId = '$dataStreamId' and r.dataStreamRoute = '$dataStreamRoute' and "
+ "r.stageInfo.service = 'UPLOAD API' and r.stageInfo.action = 'metadata-verify' and "
+ "$timeRangeWhereClause "
+ "group by r.content.metadata.received_filename"
Expand Down

0 comments on commit e1e010f

Please sign in to comment.