2010YOUY01 opened a new issue, #16041: URL: https://github.com/apache/datafusion/issues/16041
### Is your feature request related to a problem or challenge? When running a spilling query, the `explain` will display metrics like `spilled_bytes` ```sh # Run datafusion-cli with memory limit cargo run --profile release-nonlto -- --mem-pool-type fair -m 30M explain analyze select * from generate_series(1,100000000) as t1(v1) order by v1; +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | plan_type | plan | +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Plan with Metrics | SortExec: expr=[v1@0 ASC NULLS LAST], preserve_partitioning=[false], metrics=[output_rows=100000000, elapsed_compute=2.962970104s, spill_count=77, spilled_bytes=801171968, spilled_rows=100000000] | | | ProjectionExec: expr=[value@0 as v1], metrics=[output_rows=100000000, elapsed_compute=485.054µs] | | | LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=100000000, batch_size=8192], metrics=[] | | | | +-------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ ``` Using human-readable size can make it look nicer: `spilled_bytes=801171968` -> `spilled_bytes=801.1MB` https://github.com/apache/datafusion/blob/7a3d020af2a3736db11ba7477efc1a5dae96c2d3/datafusion/execution/src/memory_pool/mod.rs#L425 ### Describe the solution you'd like _No response_ ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org