-
Notifications
You must be signed in to change notification settings - Fork 942
Use proper ERRCODE #8043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Use proper ERRCODE #8043
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8043 +/- ##
==========================================
+ Coverage 80.06% 82.26% +2.20%
==========================================
Files 190 253 +63
Lines 37181 46898 +9717
Branches 9450 11808 +2358
==========================================
+ Hits 29770 38582 +8812
- Misses 2997 3645 +648
- Partials 4414 4671 +257 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -20,7 +20,7 @@ FUNCTION_NAME2(check_arrow, CTYPE)(ArrowArray *arrow, int error_type, Decompress | |||
if (n != arrow->length) | |||
{ | |||
ereport(error_type, | |||
(errcode(ERRCODE_INTERNAL_ERROR), | |||
(errcode(ERRCODE_TS_UNEXPECTED), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should throw internal error because it's a bug
@@ -1124,7 +1127,7 @@ compression_setting_orderby_get_default(Hypertable *ht, ArrayType *segmentby) | |||
0 /*count*/); | |||
if (res < 0) | |||
ereport(ERROR, | |||
(errcode(ERRCODE_INTERNAL_ERROR), | |||
(errcode(ERRCODE_TS_UNEXPECTED), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks more of an internal error than user error. What can the user do to avoid/fix this? If nothing, and they are supposed to report this as a bug, it should be an internal error.
@@ -417,7 +418,7 @@ create_compress_chunk(Hypertable *compress_ht, Chunk *src_chunk, Oid table_id) | |||
|
|||
if (namelen >= NAMEDATALEN) | |||
ereport(ERROR, | |||
(errcode(ERRCODE_INTERNAL_ERROR), | |||
(errcode(ERRCODE_TS_UNEXPECTED), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ERRCODE_INVALID_NAME
?
No description provided.