-
Couldn't load subscription status.
- Fork 25.6k
ES|QL categorize options #131104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES|QL categorize options #131104
Conversation
|
Pinging @elastic/ml-core (Team:ML) |
|
Hi @jan-elastic, I've created a changelog YAML for you. |
0faee91 to
b308397
Compare
ddf2f1f to
5ed9dfa
Compare
|
Hi @jan-elastic, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good!
.../src/test/java/org/elasticsearch/compute/aggregation/blockhash/CategorizeBlockHashTests.java
Show resolved
Hide resolved
...va/org/elasticsearch/compute/aggregation/blockhash/CategorizePackedValuesBlockHashTests.java
Outdated
Show resolved
Hide resolved
.../main/java/org/elasticsearch/xpack/ml/aggs/categorization/SerializableTokenListCategory.java
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| return new CategorizeDef( | ||
| (String) optionsMap.get("analyzer"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we validate the analyzer here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I know of. You'd need the AnalysisRegistry here.
During execution, that comes via the EsPhysicalOperationProviders from the SearchService. I don't see how to obtain something similar at this stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! As it's checked now at planning time, no problem then
|
@jan-elastic FYI there's no v8.20.0 as of now. I removed your label |
|
@ghudgins does that mean we're not backporting new functionality anymore? Just bugfixes to 8.19.x? |
a154ede to
5300744
Compare
|
@ivancea Thanks for the thorough review. Fixed all you comments. PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
...in/java/org/elasticsearch/compute/aggregation/blockhash/CategorizePackedValuesBlockHash.java
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java
Show resolved
Hide resolved
5300744 to
6248657
Compare
|
@bpintea Thanks for your review. Fixed all your comments |
6248657 to
db90b33
Compare
* ES|QL categorize options * refactor options * fix serialization * polish * add verfications * better test coverage + polish code * better test coverage + polish code
The categorizate text agg has some configuration options. ES|QL categorize does not.
This PR adds them with syntax comparable to options of the ES|QL
matchfunction.The exposed options are:
Furthermore, the options functionality of
matchis refactored to make it reusable.