-
Notifications
You must be signed in to change notification settings - Fork 61
Moving some interpolated functions out of experimental #650
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
Conversation
Open to suggestions on what to call |
extension/src/stabilization_info.rs
Outdated
|
||
crate::functions_stabilized_at! { | ||
STABLE_FUNCTIONS | ||
"1.13.0" => { |
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.
Marked this as stable in 1.13.0 since it is not going in the upcoming release
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.
If it's not going into the upcoming release (we can actually discuss this since we pushed the release out to next week), shouldn't this be marked as stable in 1.14.0?
Why can't we call it interval anymore? I think you just need to add double quotes around the name in your SQL and it'll work just fine. |
One thing I'd like to do is a) write a short readme that codifies our decision about when we are doing the keep the experimental version around for one release thing and b) add a comment that these will be removed in the next release and mentions the readme. The readme could be something like this:
@epgts does that capture what we discussed reasonably well? |
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.
Not sure if you were looking for a review yet since this is still marked as draft, but added a few comments for you.
extension/src/counter_agg.rs
Outdated
summary: CounterSummary<'a>, | ||
start: crate::raw::TimestampTz, | ||
interval: crate::raw::Interval, | ||
intervalparam: crate::raw::Interval, |
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.
Maybe duration
or perhaps interval_len
(general suggestion for all params with this name).
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.
Renamed to duration
extension/src/counter_agg.rs
Outdated
// Public facing interpolated_delta | ||
extension_sql!( | ||
"\n\ | ||
CREATE FUNCTION toolkit_experimental.interpolated_delta(summary countersummary, start timestamptz, intervalparam interval, prev countersummary, next countersummary) RETURNS double precision AS $$\n\ |
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 would like to see this indented and perhaps separated a bit to make it more readable. You can use the extension_sql blocks we use for CREATE AGGREGATE
as a guide.
extension/src/stabilization_info.rs
Outdated
"1.13.0" => { | ||
interpolated_average(timeweightsummary,timestamp with time zone,interval,timeweightsummary,timeweightsummary), | ||
interpolated_delta(countersummary,timestamp with time zone,interval,countersummary,countersummary), | ||
interpolated_rate(countersummary,timestamp with time zone,interval,countersummary,countersummary), |
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.
Indent these to be consistent with the following blocks.
extension/src/stabilization_info.rs
Outdated
|
||
crate::functions_stabilized_at! { | ||
STABLE_FUNCTIONS | ||
"1.13.0" => { |
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.
If it's not going into the upcoming release (we can actually discuss this since we pushed the release out to next week), shouldn't this be marked as stable in 1.14.0?
ffac152
to
fd834d4
Compare
b89ac62
to
48decc1
Compare
bors r+ |
Build succeeded: |
according to timescale/timescaledb-toolkit#650 Co-authored-by: Iain Cox <[email protected]>
according to timescale/timescaledb-toolkit#650 Co-authored-by: Iain Cox <[email protected]>
according to timescale/timescaledb-toolkit#650 Co-authored-by: Iain Cox <[email protected]>
Moved interpolation functions for average, delta, and rate out of the
toolkit_experimental
schema. Tests now check that the output of these functions match the output of the newtoolkit_experimental.interpolated_*
versions from this PR.