Commit bd43faf
authored
Feature/issue 6875 largest triangle three buckets (#6877) (#885)
* Add aggregation function for Largest-Triangle-Three-Buckets (#53145)
* Added a simple lttb aggregate function
* Added support for multiple datatypes
* Added support for Date and Date32, updated LTTBData struct
* Updated code to handle bucket size 0 and 1
* Added sort for LTTBData
* Added tests and documentation
* Added some code style fixes
* Added function to new func ref file
* Removed function from new func ref file
* Apply suggestions from code review
* Updated unit tests
* updated LTTB data code
* Minor style fixes
* Updated code with std sort
* updated tests
* Renamed lttb to largestTriangleThreeBuckets
* Added alias lttb
---------
Co-authored-by: Alexey Milovidov <[email protected]>
* ClickHouse/ClickHouse#56350 (partial)
* fix: split lttb bucket strategy, first bucket and last bucket should only contain single point (#57003)
* fix: split lttb bucket policy, first bucket and last bucket should only
contain single point
* add comments and modify the corresponding query test
* style: update code format
* style: remove useless comments
* feat: add lttb bucket size test
* fix: typo, duplicate sql
* Merge pull request #62646 from Algunenano/i_like_triangles
Fix crash in largestTriangleThreeBuckets
* ClickHouse/ClickHouse#60469 (partial)
* ClickHouse/ClickHouse#68135 (partial)
* Merge pull request #73172 from ucasfl/fix-ubsan
Fix UBSAN in largestTriangleThreeBuckets
* fixes1 parent 3195dda commit bd43faf
File tree
12 files changed
+626
-0
lines changed- docs/en/sql-reference/aggregate-functions/reference
- src
- AggregateFunctions
- Interpreters
- tests
- queries_ported/0_stateless
- queries/0_stateless
12 files changed
+626
-0
lines changedLines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments