v.20.3Improvement

Added exception_code column to system.query_log table

Added column exception_code in system.query_log table. #8770 (Mikhail Korotov)
Added a new column exception_code to the system.query_log table in ClickHouse.

Why it matters

This feature enhances query logging by including the exception_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 new exception_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.