-
Notifications
You must be signed in to change notification settings - Fork 1k
Fix argument names in the error messages thrown by policy_compression_add
#8394
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?
Conversation
6928b27 to
91d17c3
Compare
| /* | ||
| * `policy_compression_add` is used by both `add_compression_policy()` and | ||
| * `add_columnstore_policy()`; but thier arguments names differ. We need to | ||
| * respect that in the error messages. | ||
| */ | ||
| if (OidIsValid(fn_oid) && strcmp(get_func_name(fn_oid), "add_columnstore_policy") == 0) | ||
| { | ||
| is_columnstore_policy = true; | ||
| } |
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.
I could have added two different C functions for policy_compression_add and add_compression_policy to differentiate between them but I thought it would be excessive. Instead I check which SQL function invoked the call.
`add_compression_policy()` and `add_columnstore_policy()` share the same C-function, but their arguments have different names. We have to respect that in the error messages we show users. In this patch we introduce different error messages depending on which SQL function/procedure was invoked.
91d17c3 to
a534b67
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8394 +/- ##
==========================================
+ Coverage 82.28% 82.35% +0.06%
==========================================
Files 246 246
Lines 46120 46098 -22
Branches 11653 11652 -1
==========================================
+ Hits 37949 37962 +13
- Misses 3488 3504 +16
+ Partials 4683 4632 -51 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@zilder are u planning to continue and finish this PR? |
|
This pull request has been automatically marked as stale due to lack of activity. This pull request will be closed in 30 days. |
Fixes #8367
add_compression_policy()andadd_columnstore_policy()share the same C-function, but their arguments have different names. We have to respect that in the error messages we show users. In this patch we introduce different error messages depending on which SQL function/procedure was invoked.