[WIP] zero-filling on uncovered intervals#2259
[WIP] zero-filling on uncovered intervals#2259jaehc wants to merge 1 commit intoapache:masterfrom jaehc:zero-filling-on-uncoveredintervals
Conversation
|
@nishantmonu51 Cool. It would be better to handle #2108 first. |
|
@CHOIJAEHONG1 can we get some tests for this behavior? Also, please fix merge conflicts |
|
@fly okay, I will add some tests and solve conflicts. |
|
About the UT. |
|
resolve merge conflicts and rebase it |
|
@CHOIJAEHONG1 I believe this feature should have a query context flag and be disabled by default, otherwise it might confuse existing users that do not expect any results when there is no data. Also, it should be noted that zero may or may not be the appropriate result depending on the aggregator. We should make sure it does not break any post-aggregations, especially ones that convert complex types into numbers, since zero may not be a valid results for those. |
|
@CHOIJAEHONG1 I believe we should add a query context flag to explicitly enable filling or not. |
|
@xvrl I think the same way about handling complex types and others. It looks hard to fill empty values of complex columns especially when we use a javascript aggregator because the broker does not know what the type of argument is in a javascript function. Although the broker gets the type information by How about showing only timestamp without any values for empty buckets like the below? By the way, as-is query |
As #2106 suggests, the way how zero-filling works seems not to meet someone's expectation. some people might expect that the result with zero-filling is continuous in a timeseries even when there are absent data points here and there.
This PR makes use of uncovered intervals refering PR #2058 to find out which intervals are absent.(However, I am aware of the fact that there is still a ambiguous point about what's the meaning of absence of data segments refering #2058 conversations).
I wrote code just working right now and please check its usefulness, then I will write test code or others.