-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve performance of thetasketch dinstinct (#1102)
## Rationale Our impl for `thetasketch_dinstinct` udf is so rough, that leading to the bad performance. The aggregate stage cost `17s` in our production... In this pr, I refactor the impl `thetasketch_dinstinct` for the better performance, now the aggregate stage will just cost `6s` for the same sample sql. ## Detailed Changes + Update `hyperloglog` crate for better performance. + Use `DatumView` instead of `DfScalarValue` in `HllDistinct` to eliminate the unnecessary clone. + Fix related test. ## Test Plan Test by new ut and integration.
- Loading branch information
Showing
7 changed files
with
221 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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.