-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cubesql): Support
pg_total_relation_size
UDF
- Loading branch information
1 parent
5a4f4d7
commit cfca8ee
Showing
3 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ubesql/cubesql/src/compile/snapshots/cubesql__compile__tests__pg_total_relation_size.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: cubesql/src/compile/mod.rs | ||
expression: "execute_query(\"SELECT\n oid,\n relname,\n pg_total_relation_size(oid) relsize\n FROM pg_class\n ORDER BY oid ASC\n \".to_string(),\n DatabaseProtocol::PostgreSQL).await?" | ||
--- | ||
+-------+---------------------------+---------+ | ||
| oid | relname | relsize | | ||
+-------+---------------------------+---------+ | ||
| 18000 | KibanaSampleDataEcommerce | 8192 | | ||
| 18013 | Logs | 8192 | | ||
+-------+---------------------------+---------+ |