Repository navigation
feat(facets): faceting 7/9 - HIERARCHY, DISTINCT, STATS, AFTER, searchValues and GROUP BY acceleration - #11344
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review of #11344. The diff exceeds GitHub's 20k-line limit, so I read the PR description and the GROUP BY planner ( What looked good
Suggestions
I found no security issues in what I read. There is no new dependency, no new network or file surface, and the author is a maintainer. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | ✅ +0.11% coverage variation |
| Diff coverage | ∅ diff coverage |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (7f8ea68) 309090 257643 83.36% Head commit (8117a77) 312276 (+3186) 260650 (+3007) 83.47% (+0.11%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#11344) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
22b501b to
4a30884
Compare
c6ec8a7 to
443131c
Compare
|
Automated review (limited): the diff is over GitHub's 20,000-line limit, so I could not read it in full. I did not run the code or the tests.
🤖 Generated with Claude Code |
4a30884 to
54f1227
Compare
443131c to
bfa9805
Compare
|
Review of #11344 (limited scope). The diff exceeds GitHub's 20,000-line limit, so I couldn't read the whole PR. I read
Suggestions
I found no security hazard in the code I read. |
54f1227 to
0fb8f15
Compare
bfa9805 to
784eeed
Compare
|
Review note: this PR is too large for the GitHub diff API (122 files, +17k lines), so I could not do a full line-by-line pass. I read What I saw there:
Things to check:
Security verdict: no hazard found in the part I read. The author is a maintainer. |
0fb8f15 to
b470ed2
Compare
784eeed to
4310944
Compare
|
Review note: the GitHub API refuses to serve this diff (over 20,000 lines), so I could not do a line-by-line review. The PR comes from a maintainer, is part 7 of a stacked series, and carries its own reviewer map. I found nothing security-relevant from the description and file list. I did not read the code, so this is not an all-clear. Suggested focus for human reviewers, taken from the PR's own review focus:
🤖 Generated with Claude Code |
b470ed2 to
7f8ea68
Compare
4310944 to
dd50e47
Compare
|
Review summary: this PR is too large for a line-by-line review here (122 files, GitHub's diff limit of 20000 lines exceeded), so this is a high-level pass only.
🤖 Generated with Claude Code |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
@claude review |
|
Claude finished @robfrank's task in 23s —— View job Review of #11344 (partial)The diff is over GitHub's 20k-line limit. I read two files in full:
The eligibility check is conservative. It bails out on all of these:
SUM and AVG are limited to INTEGER and LONG, and FLOAT and DOUBLE are excluded because the addition order differs. That is the right call. Points to confirm in the tests, because I did not read
Process items (carried over from the earlier bot reviews and the PR description)
Not reviewed: I found no security problem in the two files I read. |
…hValues and GROUP BY acceleration Part 7 of 9 of the columnar faceting series, umbrella #10355.
dd50e47 to
8117a77
Compare
|
Review note: this PR is about 17k lines and GitHub can't render its diff (over 20000 lines), so I could not do a line-by-line review. I spot-checked the new SQL function
I did not check these items:
Because of the PR's size, splitting it up further would make it easier to review. |
Summary
Part 7 of 9 of columnar faceting (umbrella #10355; this part: #10360, plan 5 and plan 6 task 0).
Adds the advanced facet kinds and GROUP BY acceleration: HIERARCHY (definition in COLUMNAR METADATA,
AncestorExpander,HierarchyView/HierarchyBuilder,HierarchyManagerwith page-change generation), DISTINCT (HyperLogLog), STATS (with a publicNumericSum), dictionary prefix search and the AFTER cursor, thefacet.searchValues()SQL function, GROUP BY acceleration (eligibility, EXPLAIN, execution and equivalence), transports for the new kinds and the lag floor inFacetExecutor. It also emits the DOUBLE value hint for non-finite facet values and declares the hierarchy types in the export/import test.One commit on
main(parts 1-6, #11338 to #11343, are merged), 122 files, +17,557 / -390 (main 6,819, tests 10,595, docs 142).Reviewer map
engine/.../index/columnar/HierarchyBuilder.java,HierarchyManager.java,HierarchyView,AncestorExpander+HierarchyDefinitionengine/.../query/facet/HierarchyFacetCollector.javaDistinctFacetCollector.java+ HyperLogLogStatsFacetCollector.java+function/sql/math/NumericSum.javaengine/.../index/columnar/DictionaryPrefixSearch.javafunction/sql/facet/SQLFunctionFacetSearchValues.javafacet.searchValues()query/sql/executor/ColumnarGroupByPlanner.java,ColumnarGroupByStep.java,ColumnarGroupByAggregator.javaMechanical, skim: grammar records for the new kinds, transports for the new kinds, the non-finite hint.
Plan:
docs/superpowers/plans/2026-10-19-columnar-faceting-5-advanced.md.Review focus
FacetExecutorExposure
New facet kinds,
facet.searchValues(), GROUP BY acceleration.Behavior changes, release note owed:
arcadedb.columnar.groupByAcceleration(set it tofalseto get the normal plan back)min()/max()over a DOUBLE or FLOAT column can return0.0where a plain scan returns-0.0(the projection stores a negative zero as0.0)VALUE(ascending, without INCLUDE) now carries anaftermember (the cursor of the next page), and its MISSING bucket moves outside TOP onto the last pagemain) and 7 must ship in the same release:main's OpenAPI and proto already document hierarchy/distinct/stats/after, and a client built frommainalone reading a server with this part losesafter/min/max/sum/avgfromextensions_jsonStack and merge order
Stack: #11338 -> #11339 -> #11340 -> #11341 -> #11342 -> #11343 -> #11344 -> #11345 -> #11346
main: feat(columnar): faceting 1/9 - design spec, block codecs and block cache (plans 1-2) #11338 to feat(facets): faceting 6/9 - FACETS over HTTP, ndjson, OpenAPI, gRPC and RemoteDatabase #11343 (parts 1-6) are merged, this PR is a single commit on top of themfeat/columnar-faceting-8-resilience-load)main(git rebase --onto main <old tip of this part> <next branch>) and cascade before merging it.CI
No
mvn-testrun completed on any earlier tip of this PR. The push of8117a77ab5started run 42238115450; it must be green before merge, otherwise dispatchmvn-test.yml(workflow_dispatch) onfeat/columnar-faceting-7-facets-advanced. GROUP BY acceleration changes the plans of existing queries, so the engine suite is the real test here. Locally, this tip passedtest-compileover engine, server and grpcw plus the facet, hierarchy, GROUP BY acceleration and ACL test classes; full suites were not run locally.🤖 Generated with Claude Code
Summary by CodeRabbit
AFTERcursors for paging through terms facets andfacet.searchValuesfor prefix-based value suggestions.GROUP BYqueries can now use columnar projections, with a setting to disable acceleration.