v.21.9Improvement

Try Logging query_kind in system.query_log on Query Failure

Try recording query_kind in system.query_log even when query fails to start. #27182 (Amos Bird).
Record the query_kind field in system.query_log even for queries that fail to start.

Why it matters

This feature improves the visibility of the type of queries attempted by ensuring that the query_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 the system.query_log enhancements. Users do not need to take any additional steps to benefit from query_kind being recorded on failed queries.