-
Notifications
You must be signed in to change notification settings - Fork 882
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
Use NULL in CAgg bucket function catalog table #6682
Use NULL in CAgg bucket function catalog table #6682
Conversation
5b68a6e
to
01b3632
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6682 +/- ##
==========================================
+ Coverage 80.06% 81.46% +1.39%
==========================================
Files 190 191 +1
Lines 37181 36425 -756
Branches 9450 9464 +14
==========================================
- Hits 29770 29674 -96
+ Misses 2997 2985 -12
+ Partials 4414 3766 -648 ☔ View full report in Codecov by Sentry. |
01b3632
to
f1b6d20
Compare
Historically, we have used an empty string for undefined values in the catalog table continuous_aggs_bucket_function. Since timescale#6624, the optional arguments can be NULL. This patch cleans up the empty strings and changes the logic to work with NULL values.
f1b6d20
to
1f54f27
Compare
/* Bucket offset */ | ||
if (bucket_offset != NULL) | ||
{ | ||
values[AttrNumberGetAttrOffset(Anum_continuous_aggs_bucket_function_bucket_offset)] = |
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 code path can currently not be reached since origin
is always NULL. But this will change when #6382 is merged. This PR also contains the needed test coverage for this line.
Historically, we have used an empty string for undefined values in the catalog table continuous_aggs_bucket_function. Since #6624, the optional arguments can be NULL. This patch cleans up the empty strings and changes the logic to work with NULL values.
Disable-check: force-changelog-file