You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message should be more user-friendly. Bad case: The table 101 exceeds table size. Good case: The table tbl exceeds table size.
Provide workarounds if necessary. Bad case: The table tbl exceeds table size. Good case: The table tbl exceeds table size. Please try to turn up the value of the system variable tmp_table_size.
Define an error code when it's a general error. Bad case: The table tbl exceeds table size. Good case: Error 1001: The table tbl exceeds table size.
Report the error as early as possible. If you can judge it in the preprocess phase, don't report it in the planner phase. If you can judge it in the planner phase, don't report it in the executor phase. The premise is not breaking the readability and simplicity of the code.
The best practices of reporting errors:
The table 101 exceeds table size
. Good case:The table tbl exceeds table size
.The table tbl exceeds table size
. Good case:The table tbl exceeds table size. Please try to turn up the value of the system variable tmp_table_size
.The table tbl exceeds table size
. Good case:Error 1001: The table tbl exceeds table size
.Originally posted by @djshow832 in #26 (comment)
The text was updated successfully, but these errors were encountered: