Repository navigation
TIKA-4997: tika-eval: index container_id on pipes_class* and extract_… - #3410
Merged
Merged
Conversation
…exceptions* The crash-ledger reports and summary.md join extract_exceptions to pipes_class, which was built by create-table-as with no index, so H2 scanned pipes_class once per exception row: 9 h on a compare with 339k extract exceptions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
5 open issues
pca_container_id/pcb_container_idare created withoutIF NOT EXISTS, which can cause reruns… · Newpca_container_id/pcb_container_idare created withoutIF NOT EXISTS, which can cause reruns… · Newpc_container_idis created withoutIF NOT EXISTS(whileee_container_iduses it). If the… · New Same concern as above: matchingEXPLAINoutput for exact index names is likely to be flaky across… · New These assertions rely on H2 optimizer/EXPLAINoutput containing the specific index name strings.… · New
What changed in this PR
Improves tika-eval report generation performance by adding missing indexes used by crash-ledger/summary joins and adds regression tests to ensure those indexes are present/used.
Changes:
- Add indexes on
container_idforpipes_class*tables generated via CTAS and forextract_exceptions*tables. - Add test assertions that
EXPLAINoutput references the expected index names for key joins.
| File | Description |
|---|---|
| tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ProfilerBatchTest.java | Adds EXPLAIN-based assertions to validate index usage in profiler reports. |
| tika-eval/tika-eval-app/src/test/java/org/apache/tika/eval/app/ComparerBatchTest.java | Adds EXPLAIN-based assertions for both compare sides to validate index usage and imports Locale. |
| tika-eval/tika-eval-app/src/main/resources/profile-reports.xml | Creates new container_id indexes for pipes_class and extract_exceptions during report setup. |
| tika-eval/tika-eval-app/src/main/resources/comparison-reports.xml | Creates new container_id indexes for pipes_class_a/b and extract_exceptions_a/b during report setup. |
Review effort: Lite
Copilot stopped reviewing on behalf of
THausherr due to an error
October 23, 2026 20:51
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

…exceptions*
The crash-ledger reports and summary.md join extract_exceptions to pipes_class,
which was built by create-table-as with no index, so H2 scanned pipes_class once
per exception row: 9 h on a compare with 339k extract exceptions.
Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that
TIKA-XXXX)[TIKA-XXXX] Issue or pull request title)./mvnw clean install(clean testalone cannot resolve the pipes plugin zips)Generated-by: <tool>in the commit message), and consider running the pre-flight in.skills/devs/pr-review/SKILL.md— fix what it finds; don't paste its report heremainbranch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulledmainbranchtika-bom/pom.xml.We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!