FrankChen021 commented on a change in pull request #11673:
URL: https://github.com/apache/druid/pull/11673#discussion_r704897111
##########
File path: docs/querying/sql.md
##########
@@ -1169,6 +1179,26 @@ GROUP BY 1
ORDER BY 2 DESC
```
+This query goes a step further and shows the overall profile of available,
non-realtime segments across 1m row buckets for the `foo` datasource:
+
+```sql
+SELECT ABS("num_rows" / 1000000) as "bucket",
+ COUNT(*) as segments,
+ SUM("size") / 1048576 as totalSizeMb,
+ MIN("size") / 1048576 as minSizeMb,
Review comment:
```suggestion
MIN("size") / 1048576 as minSizeMiB,
```
##########
File path: docs/querying/sql.md
##########
@@ -1169,6 +1179,26 @@ GROUP BY 1
ORDER BY 2 DESC
```
+This query goes a step further and shows the overall profile of available,
non-realtime segments across 1m row buckets for the `foo` datasource:
+
+```sql
+SELECT ABS("num_rows" / 1000000) as "bucket",
+ COUNT(*) as segments,
+ SUM("size") / 1048576 as totalSizeMb,
+ MIN("size") / 1048576 as minSizeMb,
+ AVG("size") / 1048576 as averageSizeMb,
Review comment:
```suggestion
AVG("size") / 1048576 as averageSizeMiB,
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]