You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "Jackie-Jiang (via GitHub)" <gi...@apache.org> on 2026/08/10 23:38:02 UTC

[PR] Give the covariance functions the query's null handling option [pinot]

Jackie-Jiang opened a new pull request, #19211:
URL: https://github.com/apache/pinot/pull/19211

   ## Summary
   
   `COVAR_POP` and `COVAR_SAMP` never received the query's null handling option. Their constructor did not take it, so they folded the column's default value into the aggregate whatever the query asked for, and `extractFinalResult` could not tell the two modes apart when rendering an empty input.
   
   This is the first of the follow-ups recorded as known deviation 1 on `AggregationFunction` in #19158.
   
   ### Behavior change
   
   With `enableNullHandling=true`, these functions now skip null rows and answer `NULL` over an input where nothing was aggregated, where they previously folded in the default and answered `-Infinity`.
   
   **On the multi-stage engine the change is unconditional, and no query option controls it.** `AggregateOperator` builds every aggregation function with null handling enabled and never consults the query's option, so these functions previously discarded a flag the engine had already set to `true`. Worth a release note on the same footing as the multi-value functions in #19158.
   
   With the option disabled, nothing changes: the column default is still folded in, and an untouched accumulator still renders `-Infinity`.
   
   ### A row counts only when both columns are present
   
   A covariance pairs one value from each of two columns, so a row contributes only if neither value is null. The rows skipped are therefore those in the **union** of the two columns' null bitmaps, not either one alone.
   
   There is no multi-input nullable base to inherit this from — `forEachNotNull` is a single-block instance method on `NullableSingleInputAggregationFunction` — so this adds a private two-block variant that walks the ranges unset in the union. It builds the union with `RoaringBitmap.or`, so neither block's own bitmap is mutated.
   
   If the funnel and tuple-sketch groups need the same helper when their turn comes, it should move somewhere shared rather than be copied.
   
   ### Conforms the substitution at the same time
   
   `extractAggregationResult` returned a zero-count `CovarianceTuple` for an untouched holder, which destroyed the "nothing was aggregated" signal before `extractFinalResult` could act on it. Both extraction methods now return `null`, and `extractFinalResult` renders the disabled-mode identity.
   
   The contract notes that this is not separable from the option: without it, `extractFinalResult` has nothing to decide with, so the substitution was the only thing holding the answer. Deviation 1 is updated to drop the covariance functions.
   
   ### Tests
   
   `CovarianceAggregationFunctionTest` covers the both-columns rule, an all-null input answering `NULL`, the disabled mode still folding the default, and the identity being rendered only when the option is off.
   
   The union is the novel part, so it is mutation-tested: weakening it to the first column's bitmap makes `testRowIsSkippedWhenEitherColumnIsNull` fail with `expected [2] but found [3]`.
   
   `AggregationFunctionNullContractTest` detected the change on its own — `COVARPOP` and `COVARSAMP` appeared as newly honouring the option — and they are pinned in `HONOURS_NULL_HANDLING` accordingly.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on code in PR #19211:
URL: https://github.com/apache/pinot/pull/19211#discussion_r3755927878


##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/CovarianceAggregationFunction.java:
##########
@@ -54,11 +56,45 @@ public class CovarianceAggregationFunction implements AggregationFunction<Covari
   protected final ExpressionContext _expression1;
   protected final ExpressionContext _expression2;
   protected final boolean _isSample;
+  protected final boolean _nullHandlingEnabled;
 
-  public CovarianceAggregationFunction(List<ExpressionContext> arguments, boolean isSample) {
+  public CovarianceAggregationFunction(List<ExpressionContext> arguments, boolean isSample,
+      boolean nullHandlingEnabled) {
     _expression1 = arguments.get(0);
     _expression2 = arguments.get(1);
     _isSample = isSample;
+    _nullHandlingEnabled = nullHandlingEnabled;
+  }
+
+  /// Runs `consumer` over the row ranges where **both** input columns are non-null.
+  ///
+  /// A covariance pairs two values per row, so a row contributes only when neither is null; the ranges are therefore
+  /// taken from the union of the two null bitmaps. With null handling disabled the whole block is consumed, matching
+  /// the single-input helper on [NullableSingleInputAggregationFunction].
+  private void forEachNotNull(int length, BlockValSet blockValSet1, BlockValSet blockValSet2,
+      RoaringBitmapUtils.BatchConsumer consumer) {
+    if (!_nullHandlingEnabled) {
+      consumer.consume(0, length);
+      return;
+    }
+    RoaringBitmap nullBitmap1 = blockValSet1.getNullBitmap();
+    RoaringBitmap nullBitmap2 = blockValSet2.getNullBitmap();
+    RoaringBitmap nullBitmap;
+    if (nullBitmap1 == null) {
+      nullBitmap = nullBitmap2;
+    } else if (nullBitmap2 == null) {
+      nullBitmap = nullBitmap1;
+    } else {
+      // a new bitmap, so neither block's own bitmap is mutated
+      nullBitmap = RoaringBitmap.or(nullBitmap1, nullBitmap2);

Review Comment:
   Right, and better than that — I duplicated something that already exists.
   
   `NullableSingleInputAggregationFunction.orNullIterator` already merges two blocks' null positions as a stream through `MinIntIterator`, with `EmptyIntIterator` for the disabled case and no bitmap materialized. Covariance does not extend that class, so I have exposed a static variant taking the option explicitly and had the instance method delegate to it. No new merging logic, and the `RoaringBitmap.or` allocation is gone.
   
   I had claimed in the description that no multi-input nullable base existed to inherit this from. I checked for a class and never grepped for a two-block method, so that was wrong.
   
   One consequence worth pinning: the merged stream can report a row twice when both columns are null in it. `forEachUnset` absorbs that because `prev = nextNull + 1` is idempotent, and `MinIntIterator.hasNext` uses `> 0`, so a cached `0` is dropped — safe only because a cached `0` can only be a duplicate already emitted. `testRowNullInBothColumnsIsDroppedOnce` covers exactly that, at index 0.



##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/CovarianceAggregationFunction.java:
##########
@@ -135,31 +180,31 @@ public void aggregateGroupBySV(int length, int[] groupKeyArray, GroupByResultHol
       Map<ExpressionContext, BlockValSet> blockValSetMap) {
     double[] values1 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression1);
     double[] values2 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression2);
-    for (int i = 0; i < length; i++) {
-      setGroupByResult(groupKeyArray[i], groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
-    }
+    forEachNotNull(length, blockValSetMap.get(_expression1), blockValSetMap.get(_expression2), (from, to) -> {
+      for (int i = from; i < to; i++) {
+        setGroupByResult(groupKeyArray[i], groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+      }
+    });
   }
 
   @Override
   public void aggregateGroupByMV(int length, int[][] groupKeysArray, GroupByResultHolder groupByResultHolder,
       Map<ExpressionContext, BlockValSet> blockValSetMap) {
     double[] values1 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression1);
     double[] values2 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression2);
-    for (int i = 0; i < length; i++) {
-      for (int groupKey : groupKeysArray[i]) {
-        setGroupByResult(groupKey, groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+    forEachNotNull(length, blockValSetMap.get(_expression1), blockValSetMap.get(_expression2), (from, to) -> {
+      for (int i = from; i < to; i++) {
+        for (int groupKey : groupKeysArray[i]) {
+          setGroupByResult(groupKey, groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+        }
       }
-    }
+    });
   }
 
+  @Nullable
   @Override
   public CovarianceTuple extractAggregationResult(AggregationResultHolder aggregationResultHolder) {
-    CovarianceTuple covarianceTuple = aggregationResultHolder.getResult();
-    if (covarianceTuple == null) {
-      return new CovarianceTuple(0.0, 0.0, 0.0, 0L);
-    } else {
-      return covarianceTuple;
-    }
+    return aggregationResultHolder.getResult();

Review Comment:
   Correct, and I have verified it. The pre-change `extractFinalResult(null)` returned `null`, so a new server sending a `null` intermediate to an old broker renders `NULL` where that broker previously received a zero-count tuple and rendered `-Infinity`.
   
   There is no NPE on that path: `AggregationFunctionUtils.merge` settles a null on both sides, so the old broker never calls `merge` with one. It is a rendered-answer difference, confined to the mixed-version window, and upgrading brokers first avoids it.
   
   I have not preserved the zero-count tuple for disabled mode, because doing so keeps the substitution that this change exists to remove, and the contract on `AggregationFunction` treats the substitution and the missing option as one deviation rather than two. The description now states the mixed-version behaviour explicitly instead of claiming the disabled mode is unaffected, which is what it said before and was wrong.



##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java:
##########
@@ -458,9 +458,9 @@ public static AggregationFunction getAggregationFunction(FunctionContext functio
           case HISTOGRAM:
             return new HistogramAggregationFunction(arguments);
           case COVARPOP:
-            return new CovarianceAggregationFunction(arguments, false);
+            return new CovarianceAggregationFunction(arguments, false, nullHandlingEnabled);
           case COVARSAMP:
-            return new CovarianceAggregationFunction(arguments, true);
+            return new CovarianceAggregationFunction(arguments, true, nullHandlingEnabled);

Review Comment:
   Agreed. `NullHandlingEnabledQueriesTest` now covers this end to end over real segments containing nulls, so the option is verified to reach the function through the factory and the result to survive server-to-broker rendering: rows dropped when either column is null, an all-null input answering `NULL`, and the disabled mode still folding the column default.
   
   One case did not survive there. That harness sets `_indexSegments = asList(segment, segment)`, so a single-row fixture is queried twice and a `COVAR_SAMP` over 'one row' is really two identical rows, whose sample covariance is exactly `0.0`. That assertion lives in the unit test, where the input size is exact.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "xiangfu0 (via GitHub)" <gi...@apache.org>.
xiangfu0 commented on PR #19211:
URL: https://github.com/apache/pinot/pull/19211#issuecomment-5260971929

   Documentation follow-up: https://github.com/pinot-contrib/pinot-docs/pull/977 (merged).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #19211:
URL: https://github.com/apache/pinot/pull/19211#discussion_r3754272900


##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/CovarianceAggregationFunction.java:
##########
@@ -135,31 +180,31 @@ public void aggregateGroupBySV(int length, int[] groupKeyArray, GroupByResultHol
       Map<ExpressionContext, BlockValSet> blockValSetMap) {
     double[] values1 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression1);
     double[] values2 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression2);
-    for (int i = 0; i < length; i++) {
-      setGroupByResult(groupKeyArray[i], groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
-    }
+    forEachNotNull(length, blockValSetMap.get(_expression1), blockValSetMap.get(_expression2), (from, to) -> {
+      for (int i = from; i < to; i++) {
+        setGroupByResult(groupKeyArray[i], groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+      }
+    });
   }
 
   @Override
   public void aggregateGroupByMV(int length, int[][] groupKeysArray, GroupByResultHolder groupByResultHolder,
       Map<ExpressionContext, BlockValSet> blockValSetMap) {
     double[] values1 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression1);
     double[] values2 = StatisticalAggregationFunctionUtils.getValSet(blockValSetMap, _expression2);
-    for (int i = 0; i < length; i++) {
-      for (int groupKey : groupKeysArray[i]) {
-        setGroupByResult(groupKey, groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+    forEachNotNull(length, blockValSetMap.get(_expression1), blockValSetMap.get(_expression2), (from, to) -> {
+      for (int i = from; i < to; i++) {
+        for (int groupKey : groupKeysArray[i]) {
+          setGroupByResult(groupKey, groupByResultHolder, values1[i], values2[i], values1[i] * values2[i], 1L);
+        }
       }
-    }
+    });
   }
 
+  @Nullable
   @Override
   public CovarianceTuple extractAggregationResult(AggregationResultHolder aggregationResultHolder) {
-    CovarianceTuple covarianceTuple = aggregationResultHolder.getResult();
-    if (covarianceTuple == null) {
-      return new CovarianceTuple(0.0, 0.0, 0.0, 0L);
-    } else {
-      return covarianceTuple;
-    }
+    return aggregationResultHolder.getResult();

Review Comment:
   This changes the disabled-mode wire value in a mixed-version cluster. Previously an untouched new-server holder produced a zero-count tuple, which an old broker rendered as `-Infinity`; it will now receive `null`, and the old `extractFinalResult(null)` returns `NULL`. That contradicts the stated “option disabled, nothing changes” behavior and Pinot’s mixed-version requirement. Preserve the zero-count tuple for disabled mode until old brokers are no longer supported, while returning `null` only when null handling is enabled.



##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/CovarianceAggregationFunction.java:
##########
@@ -54,11 +56,45 @@ public class CovarianceAggregationFunction implements AggregationFunction<Covari
   protected final ExpressionContext _expression1;
   protected final ExpressionContext _expression2;
   protected final boolean _isSample;
+  protected final boolean _nullHandlingEnabled;
 
-  public CovarianceAggregationFunction(List<ExpressionContext> arguments, boolean isSample) {
+  public CovarianceAggregationFunction(List<ExpressionContext> arguments, boolean isSample,
+      boolean nullHandlingEnabled) {
     _expression1 = arguments.get(0);
     _expression2 = arguments.get(1);
     _isSample = isSample;
+    _nullHandlingEnabled = nullHandlingEnabled;
+  }
+
+  /// Runs `consumer` over the row ranges where **both** input columns are non-null.
+  ///
+  /// A covariance pairs two values per row, so a row contributes only when neither is null; the ranges are therefore
+  /// taken from the union of the two null bitmaps. With null handling disabled the whole block is consumed, matching
+  /// the single-input helper on [NullableSingleInputAggregationFunction].
+  private void forEachNotNull(int length, BlockValSet blockValSet1, BlockValSet blockValSet2,
+      RoaringBitmapUtils.BatchConsumer consumer) {
+    if (!_nullHandlingEnabled) {
+      consumer.consume(0, length);
+      return;
+    }
+    RoaringBitmap nullBitmap1 = blockValSet1.getNullBitmap();
+    RoaringBitmap nullBitmap2 = blockValSet2.getNullBitmap();
+    RoaringBitmap nullBitmap;
+    if (nullBitmap1 == null) {
+      nullBitmap = nullBitmap2;
+    } else if (nullBitmap2 == null) {
+      nullBitmap = nullBitmap1;
+    } else {
+      // a new bitmap, so neither block's own bitmap is mutated
+      nullBitmap = RoaringBitmap.or(nullBitmap1, nullBitmap2);

Review Comment:
   `RoaringBitmap.or` materializes and copies the complete union for every scanned value block whenever both columns contain nulls. This is on the aggregation/group-by hot path and can add substantial allocation and bitmap traversal for nullable columns. Stream the ordered union into `forEachUnset` instead (the existing `MinIntIterator` pattern already merges two null iterators without materializing a bitmap), ideally after moving that iterator helper to `RoaringBitmapUtils`.



##########
pinot-core/src/main/java/org/apache/pinot/core/query/aggregation/function/AggregationFunctionFactory.java:
##########
@@ -458,9 +458,9 @@ public static AggregationFunction getAggregationFunction(FunctionContext functio
           case HISTOGRAM:
             return new HistogramAggregationFunction(arguments);
           case COVARPOP:
-            return new CovarianceAggregationFunction(arguments, false);
+            return new CovarianceAggregationFunction(arguments, false, nullHandlingEnabled);
           case COVARSAMP:
-            return new CovarianceAggregationFunction(arguments, true);
+            return new CovarianceAggregationFunction(arguments, true, nullHandlingEnabled);

Review Comment:
   This query-semantics change has only direct function/synthetic-block tests. It does not verify that a real query propagates `enableNullHandling` through the factory or that server-to-broker rendering carries the new nullable intermediate correctly; the existing `StatisticalQueriesTest` covariance cases use non-null data and default handling only. Add end-to-end aggregation and group-by cases with nulls for both option modes, including an all-null result.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang commented on PR #19211:
URL: https://github.com/apache/pinot/pull/19211#issuecomment-5250122723

   @yashmayya thanks — the nit is folded in, but I think the NPE is against pre-#19158 code.
   
   ## The merge path
   
   The snippet you quoted is what `AggregationDataTableReducer` looked like before #19158. That PR replaced it:
   
   ```diff
   -  intermediateResults[i] = aggregationFunction.merge(mergedIntermediateResult, intermediateResultToMerge);
   +      AggregationFunctionUtils.merge(aggregationFunction, intermediateResults[i], intermediateResultToMerge);
   ```
   
   `AggregationFunctionUtils.merge` settles **both** operands before delegating, so `merge` is never handed a null from there. `IndexedTable.updateRecord`, the group-by path you mention, routes through the same helper.
   
   The supporting evidence points the same way: `VarianceAggregationFunction.merge` on master today is a bare `intermediateResult1.apply(intermediateResult2)` with no guards on either side. #19158 removed them precisely because the caller now settles the identity, and the contract says `merge` is handed two real values and must not be called with `null`.
   
   So I have not added the guard or the `@Nullable` parameters — they would contradict that contract and be unreachable. If you can point at a caller that still reaches `merge` with a null, I will fix it there rather than in the implementation, since that would be a bug in the caller.
   
   Your read of MSE matches mine: both executors skip a null intermediate before merging.
   
   ## The nit
   
   Folded in. `COVAR_SAMP` over a single contributing row divides by `count - 1`, so it is undefined; it now answers `NULL` with the option on, where it returned `-Infinity` in both modes before.
   
   ## Also changed since your review
   
   From the Copilot comments: the two-block null merge now reuses `NullableSingleInputAggregationFunction.orNullIterator` rather than materializing a union with `RoaringBitmap.or` — that helper already existed and I had missed it — and `NullHandlingEnabledQueriesTest` adds end-to-end coverage over segments with nulls. The description also now states the mixed-version behaviour in the disabled mode, which it previously described as unaffected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "yashmayya (via GitHub)" <gi...@apache.org>.
yashmayya commented on PR #19211:
URL: https://github.com/apache/pinot/pull/19211#issuecomment-5247336757

   `extractAggregationResult` can now return `null`, but `merge` still calls `intermediateResult1.apply(intermediateResult2)`, which dereferences its argument right away. A null second argument throws an NPE.
   
   The SSE reduce path can pass one. `AggregationDataTableReducer.mergeIntermediateResults` guards the accumulator, not the incoming value:
   
   ```java
   if (mergedIntermediateResult == null) {
     intermediateResults[i] = intermediateResultToMerge;
   } else {
     intermediateResults[i] = aggregationFunction.merge(mergedIntermediateResult, intermediateResultToMerge);
   }
   ```
   
   A few lines above, it sets `intermediateResultToMerge` to `null` when the null bitmap of the data table marks row 0.
   
   So `SELECT COVAR_POP(x, y) FROM t WHERE ...` with `enableNullHandling=true` breaks when one server matches no rows and another returns data. If the data table with data comes first, the next merge throws. `IndexedTable.updateRecord` has the same shape on the group-by path.
   
   `VarianceAggregationFunction.merge` already guards both sides when `_nullHandlingEnabled` is true. Covariance needs the same guard, plus `@Nullable` on both parameters.
   
   MSE is safe here. `MultistageAggregationExecutor` and `MultistageGroupByExecutor` both skip a null intermediate result before they call merge.
   
   Nit, and pre-existing: with null handling on, `COVAR_SAMP` over a single non-null row still returns `-Infinity` from the `count - 1 == 0` branch. It sits close to what this PR corrects, so it can be worth folding in.
   
   The rest reads well to me. The union of the two null bitmaps is correct and does not mutate either block's bitmap, the disabled path keeps the old behavior, and the tests cover the interesting cases.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #19211:
URL: https://github.com/apache/pinot/pull/19211#issuecomment-5247552374

   ## [Codecov](https://app.codecov.io/gh/apache/pinot/pull/19211?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `87.23404%` with `6 lines` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 57.67%. Comparing base ([`411bdc8`](https://app.codecov.io/gh/apache/pinot/commit/411bdc804c5989ac54c48fc6821c931849e6bce2?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`684c621`](https://app.codecov.io/gh/apache/pinot/commit/684c621b050fc7e9c4b7f4d757c34feedfb4362e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/pinot/pull/19211?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...gation/function/CovarianceAggregationFunction.java](https://app.codecov.io/gh/apache/pinot/pull/19211?src=pr&el=tree&filepath=pinot-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fpinot%2Fcore%2Fquery%2Faggregation%2Ffunction%2FCovarianceAggregationFunction.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGlub3QtY29yZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcGlub3QvY29yZS9xdWVyeS9hZ2dyZWdhdGlvbi9mdW5jdGlvbi9Db3ZhcmlhbmNlQWdncmVnYXRpb25GdW5jdGlvbi5qYXZh) | 86.66% | [5 Missing and 1 partial :warning: ](https://app.codecov.io/gh/apache/pinot/pull/19211?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   > :exclamation:  There is a different number of reports uploaded between BASE (411bdc8) and HEAD (684c621). Click for more details.
   > 
   > <details><summary>HEAD has 24 uploads less than BASE</summary>
   >
   >| Flag | BASE (411bdc8) | HEAD (684c621) |
   >|------|------|------|
   >|lane-b|2|0|
   >|integration|4|0|
   >|java-25|6|1|
   >|integration1|2|0|
   >|temurin|6|1|
   >|lane-a|2|0|
   >|integration2|2|0|
   >|unittests|2|1|
   >|unittests2|1|0|
   ></details>
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #19211      +/-   ##
   ============================================
   - Coverage     66.93%   57.67%   -9.27%     
   + Complexity     1423        1    -1422     
   ============================================
     Files          3452     2655     -797     
     Lines        218447   158800   -59647     
     Branches      34718    26044    -8674     
   ============================================
   - Hits         146221    91587   -54634     
   + Misses        60547    59448    -1099     
   + Partials      11679     7765    -3914     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [integration](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration1](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [integration2](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [java-25](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.67% <87.23%> (-9.27%)` | :arrow_down: |
   | [lane-a](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [lane-b](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   | [temurin](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.67% <87.23%> (-9.27%)` | :arrow_down: |
   | [unittests](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.67% <87.23%> (-9.26%)` | :arrow_down: |
   | [unittests1](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.67% <87.23%> (-0.01%)` | :arrow_down: |
   | [unittests2](https://app.codecov.io/gh/apache/pinot/pull/19211/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/pinot/pull/19211?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [PR] Give the covariance functions the query's null handling option [pinot]

Posted by "Jackie-Jiang (via GitHub)" <gi...@apache.org>.
Jackie-Jiang merged PR #19211:
URL: https://github.com/apache/pinot/pull/19211


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org