v.21.9Improvement
Try Logging query_kind in system.query_log on Query Failure
Try recordingquery_kindinsystem.query_logeven when query fails to start. #27182 (Amos Bird).
Why it matters
This feature improves the visibility of the type of queries attempted by ensuring that thequery_kind is logged even when a query does not successfully start. This helps users better understand and diagnose failed query attempts by providing more detailed log information.How to use it
The feature is enabled by default as part of thesystem.query_log enhancements. Users do not need to take any additional steps to benefit from query_kind being recorded on failed queries.