This website requires JavaScript.
Explore
Help
Sign In
thevar1able
/
ClickHouse
Watch
1
Star
0
Fork
0
You've already forked ClickHouse
mirror of
https://github.com/ClickHouse/ClickHouse.git
synced
2024-11-25 17:12:03 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
fdcfacda60
ClickHouse
/
tests
/
queries
/
0_stateless
/
01544_errorCodeToName.reference
5 lines
24 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add errorCodeToName() function This patch adds errorCode() function that will return macro name by the exception code, useful for analyzing query_log and similar. Later some descriptions can be added. v2: replace hana::map/fusion::vector with external script v3: - use binary cmake dir for .sh - use jump table over suboptimal std::unordered_map (with very poor hash function for int -- std::hash) - cleanup errorCodeToName (drop extra templates and headers) - rename errorCode -> errorCodeToName - fix arcadia build (by not providing those helpers there) - fix build on CI, by using CMAKE_CXX_COMPILER for parsing the file
2020-10-12 18:22:09 +00:00
Covert error codes list to lookup table and drop generation of them.
2020-10-29 07:07:42 +00:00
Add errorCodeToName() function This patch adds errorCode() function that will return macro name by the exception code, useful for analyzing query_log and similar. Later some descriptions can be added. v2: replace hana::map/fusion::vector with external script v3: - use binary cmake dir for .sh - use jump table over suboptimal std::unordered_map (with very poor hash function for int -- std::hash) - cleanup errorCodeToName (drop extra templates and headers) - rename errorCode -> errorCodeToName - fix arcadia build (by not providing those helpers there) - fix build on CI, by using CMAKE_CXX_COMPILER for parsing the file
2020-10-12 18:22:09 +00:00
OK
UNSUPPORTED_METHOD
Reference in New Issue
Copy Permalink