Skip to content

Conversation

@mneedham
Copy link
Contributor

Description

The ST_Within function is described in the geospatial docs (https://docs.pinot.apache.org/basics/indexing/geospatial-support) but I don't think it actually exists in the code.

Upgrade Notes

Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

  • Yes (Please label as backward-incompat, and complete the section below on Release Notes)

Does this PR fix a zero-downtime upgrade introduced earlier?

  • Yes (Please label this as backward-incompat, and complete the section below on Release Notes)

Does this PR otherwise need attention when creating release notes? Things to consider:

  • New configuration options
  • Deprecation of configurations
  • Signature changes to public methods/interfaces
  • New plugins added or old plugins removed
  • Yes (Please label this PR as release-notes and complete the section on Release Notes)

Release Notes

Documentation

@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2022

Codecov Report

Merging #7990 (8ac881a) into master (7030260) will decrease coverage by 0.89%.
The diff coverage is 75.86%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7990      +/-   ##
============================================
- Coverage     71.23%   70.33%   -0.90%     
- Complexity     4218     4222       +4     
============================================
  Files          1595     1597       +2     
  Lines         82743    82900     +157     
  Branches      12347    12369      +22     
============================================
- Hits          58942    58308     -634     
- Misses        19813    20591     +778     
- Partials       3988     4001      +13     
Flag Coverage Δ
integration1 28.92% <6.89%> (+<0.01%) ⬆️
integration2 ?
unittests1 68.15% <75.86%> (-0.04%) ⬇️
unittests2 14.32% <0.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...eospatial/transform/function/StWithinFunction.java 74.07% <74.07%> (ø)
...e/pinot/common/function/TransformFunctionType.java 100.00% <100.00%> (ø)
...r/transform/function/TransformFunctionFactory.java 82.40% <100.00%> (+0.16%) ⬆️
...t/core/plan/StreamingInstanceResponsePlanNode.java 0.00% <0.00%> (-100.00%) ⬇️
...ore/operator/streaming/StreamingResponseUtils.java 0.00% <0.00%> (-100.00%) ⬇️
...ager/realtime/PeerSchemeSplitSegmentCommitter.java 0.00% <0.00%> (-100.00%) ⬇️
...pache/pinot/common/utils/grpc/GrpcQueryClient.java 0.00% <0.00%> (-94.74%) ⬇️
...he/pinot/core/plan/StreamingSelectionPlanNode.java 0.00% <0.00%> (-88.89%) ⬇️
...ator/streaming/StreamingSelectionOnlyOperator.java 0.00% <0.00%> (-87.81%) ⬇️
...re/query/reduce/SelectionOnlyStreamingReducer.java 0.00% <0.00%> (-85.72%) ⬇️
... and 104 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7030260...8ac881a. Read the comment docs.

Comment on lines 77 to 79
if (_results == null) {
_results = new int[DocIdSetPlanNode.MAX_DOC_PER_CALL];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a common pattern but one I am trying to move transform functions away from - use projectionBlock.getNumDocs() in preference to DocIdSetPlanNode.MAX_DOC_PER_CALL because it might be much smaller than 10k if there is any filtering.


public class StWithinFunctionTest extends GeoFunctionTest {
@Test
public void testWithin()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

Copy link
Member

@richardstartin richardstartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@Jackie-Jiang Jackie-Jiang merged commit eaa5180 into apache:master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants