v.25.5Improvement

Add last_error_message, last_error_trace and query_id to

Add last_error_message, last_error_trace and query_id to the system.error_log table. Related ticket #75816. #79836 (Andrei Tinikov).
Added the columns last_error_message, last_error_trace, and query_id to the system.error_log table in ClickHouse.

Why it matters

This feature enhances the system.error_log table by providing more detailed information about errors, including the last error message, the error stack trace, and the query identifier. This helps users diagnose issues more effectively by having richer contextual data about errors.

How to use it

Users can query the system.error_log table as usual to retrieve error information. The new columns last_error_message, last_error_trace, and query_id will be available for use in queries to get detailed error diagnostics.