[feature](search) add exact dsl for search function#56710
[feature](search) add exact dsl for search function#56710airborne12 merged 2 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
There was a problem hiding this comment.
Pull Request Overview
This PR adds EXACT DSL functionality to the search function, enabling exact string matching without tokenization. This feature complements existing ANY/ALL operators that work with tokenized indexes by providing strict string equality matching.
Key changes:
- Added EXACT clause type to search DSL grammar and parser
- Updated backend function to handle EXACT queries using EQUAL_QUERY type
- Extensive test coverage for various EXACT matching scenarios
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| SearchLexer.g4 | Added EXACT_LPAREN token for lexical analysis |
| SearchParser.g4 | Added exactValue rule to grammar |
| SearchDslParser.java | Added EXACT clause type and parsing logic |
| function_search.cpp | Added EXACT handling in backend query processing |
| test_search_exact_*.groovy | Comprehensive regression tests for EXACT functionality |
| test_search_exact_*.out | Expected test outputs for EXACT functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
run buildall |
TPC-DS: Total hot run time: 190001 ms |
ClickBench: Total hot run time: 30.5 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
FE Regression Coverage ReportIncrement line coverage |
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
### What problem does this PR solve? Issue Number: close #xxx Related PR: #56139 Problem Summary: This PR adds EXACT DSL functionality to the search function, enabling exact string matching without tokenization. This feature complements existing ANY/ALL operators that work with tokenized indexes by providing strict string equality matching.
### What problem does this PR solve? Issue Number: close #xxx Related PR: apache#56139 Problem Summary: This PR adds EXACT DSL functionality to the search function, enabling exact string matching without tokenization. This feature complements existing ANY/ALL operators that work with tokenized indexes by providing strict string equality matching.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #56139
Problem Summary:
This PR adds EXACT DSL functionality to the search function, enabling exact string matching without tokenization. This feature complements existing ANY/ALL operators that work with tokenized indexes by providing strict string equality matching.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)