-
Notifications
You must be signed in to change notification settings - Fork 208
Add DISTINCT_COUNT_APPROX function #3654
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
Merged
qianheng-aws
merged 20 commits into
opensearch-project:main
from
xinyual:addDistinctApprox
Jun 10, 2025
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
07a4200
add approx distinct count
xinyual 08bbb45
add IT
xinyual f17dc66
fix IT name
xinyual 7e211ab
change parser logic
xinyual 4c41cca
apply spotless
xinyual 07e29ed
add doc
xinyual 5ebdb41
add java doc
xinyual c8964f4
fix doc test
xinyual efe9c48
revert useless change
xinyual 361d4d2
add version to doc
xinyual eb3e37d
change to use opensearch core code
xinyual 56dcb3b
remove dependency
xinyual 067b322
Merge remote-tracking branch 'origin/main' into addDistinctApprox
xinyual 04d081a
refactor code to move function to opensearch package
xinyual a3e6a54
refactor code
xinyual e9c0cff
Merge remote-tracking branch 'origin/main' into addDistinctApprox
xinyual 9485929
Merge remote-tracking branch 'origin/main' into addDistinctApprox
xinyual 30228c9
merge from main
xinyual b90e7b8
add Doc and change to concurrency map
xinyual 4f1a0d7
Merge remote-tracking branch 'origin/main' into addDistinctApprox
xinyual File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Both
externalFunctionRegistryandaggExternalFunctionRegistryshould change toCurrentHashMapor addsynchronizedkeyword inregisterExternalFunctionandregisterExternalAggFunction. Because thePPLFuncImpTableinstance is a static member. No problem for now since we only register external functions when initializeOpenSearchExecutionEngine. But it's a public API, we'd better protect it.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.
Already make two map to
ConCurrentHashMapand slightly change the code ofregisterExternalFunction. The put inregisterExternalAggFunctionis already safe. Please check it.