databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

chore: add error stack to cmd entrence #16391

Closed andylokandy closed 3 weeks ago

andylokandy commented 3 weeks ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

Tests

Type of change


This change isโ€‚Reviewable

what-the-diff[bot] commented 3 weeks ago

PR Summary

Key changes in src/binaries/query directory

This PR heavily modifies error handling in the application by making use of a common error handling library and a new MainError type for main functions like run_cmd and start_services in the query binary.

Major updates in src/common/base/src/runtime directory

Important modifications in src/common/exception/src directory

Critical changes in src/query/service/src/interpreters directory

Various files updated

Various files have been updated to implement databend_common_exception::ResultExt, which will help to handle errors more proficiently throughout the software. Notably, changes are made in query log, executor_graph, pipeline_executor, http_query. query_ctx, session, commit, gc, navigate, and several test files are also updated to use ResultExt.