Closed
Description
Summary
Description for this feature.
Context:
databend > select sum(length(stack_trace)), sum( length(session_settings) ), sum(length(query_text )) from system.query_log;
+--------------------------+-------------------------------+-------------------------+
| sum(length(stack_trace)) | sum(length(session_settings)) | sum(length(query_text)) |
+--------------------------+-------------------------------+-------------------------+
| 0 | 6375 | 734 |
+--------------------------+-------------------------------+-------------------------+
We can add humanize
function to display the size for better reading.
- Function:
humanize
- ReturnType: String
- Example:
databend > select humanize(1024);
+------------+
| humanize(1024) |
+------------+
| 1.00 KiB |