v.22.7Improvement
Fix for Incorrect result_bytes Value in INSERT Queries of system.query_log
The metricresult_bytesforINSERTqueries insystem.query_logshows number of bytes inserted. Previously value was incorrect and stored the same value asresult_rows. #39225 (Ilya Yatsishin).
Why it matters
This fix addresses the incorrect reporting ofresult_bytes for INSERT queries, ensuring accurate monitoring and analysis of the amount of data inserted. Users can now rely on system.query_log to provide precise metrics for data ingestion size, improving query auditing and performance tracking.How to use it
Users do not need to enable anything explicitly. After updating to the fixed version, theresult_bytes field in system.query_log will automatically reflect the correct number of bytes inserted by INSERT queries.