v.20.3Improvement
Added exception_code column to system.query_log table
Added columnexception_codeinsystem.query_logtable. #8770 (Mikhail Korotov)
Why it matters
This feature enhances query logging by including theexception_code, which helps users identify specific error codes associated with query failures or exceptions, making troubleshooting and analysis more precise.How to use it
Users can access the newexception_code column directly in the system.query_log table without any additional configuration. Simply query system.query_log to see exception codes alongside existing query log data.