[8.x] Make semantic text part of the text family (#119792)#119962
[8.x] Make semantic text part of the text family (#119792)#119962Mikep86 merged 3 commits intoelastic:8.xfrom
Conversation
Co-authored-by: Ioana Tagirta <ioana.tagirta@elastic.co> (cherry picked from commit 29e1bf9) # Conflicts: # x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java # x-pack/plugin/esql/qa/testFixtures/src/main/resources/semantic_text.csv-spec
...ugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java
Show resolved
Hide resolved
| grok | ||
| required_capability: semantic_text_field_caps | ||
|
|
||
| FROM semantic_text METADATA _id | ||
| | GROK st_logs """%{TIMESTAMP_ISO8601:date} %{IP:ip} %{EMAILADDRESS:email} %{NUMBER:num}""" | ||
| | KEEP st_logs, date, ip, email, num | ||
| | SORT st_logs | ||
| ; | ||
|
|
||
| st_logs:text | date:keyword | ip:keyword | email:keyword | num:keyword | ||
| 2023-01-23T12:15:00.000Z 127.0.0.1 some.email@foo.com 42 | 2023-01-23T12:15:00.000Z | 127.0.0.1 | some.email@foo.com | 42 | ||
| 2024-01-23T12:15:00.000Z 1.2.3.4 foo@example.com 42 | 2024-01-23T12:15:00.000Z | 1.2.3.4 | foo@example.com | 42 | ||
| 2024-12-23T12:15:00.000Z 1.2.3.4 example@example.com 4553 | 2024-12-23T12:15:00.000Z | 1.2.3.4 | example@example.com | 4553 | ||
| ; | ||
|
|
||
| dissect | ||
| required_capability: semantic_text_field_caps | ||
|
|
||
| FROM semantic_text METADATA _id | ||
| | DISSECT st_logs """%{date} %{ip} %{email} %{num}""" | ||
| | KEEP st_logs, date, ip, email, num | ||
| | SORT st_logs | ||
| ; | ||
|
|
||
| st_logs:text | date:keyword | ip:keyword | email:keyword | num:keyword | ||
| 2023-01-23T12:15:00.000Z 127.0.0.1 some.email@foo.com 42 | 2023-01-23T12:15:00.000Z | 127.0.0.1 | some.email@foo.com | 42 | ||
| 2024-01-23T12:15:00.000Z 1.2.3.4 foo@example.com 42 | 2024-01-23T12:15:00.000Z | 1.2.3.4 | foo@example.com | 42 | ||
| 2024-12-23T12:15:00.000Z 1.2.3.4 example@example.com 4553 | 2024-12-23T12:15:00.000Z | 1.2.3.4 | example@example.com | 4553 | ||
| ; | ||
|
|
There was a problem hiding this comment.
These tests were pulled in from main, should we keep them?
There was a problem hiding this comment.
They're not part of 8.x - I'll let @ioanatia call this one out
There was a problem hiding this comment.
They are missing because the auto backport failed for #117337 - I looked at the PR and I think we should only include the tests. This PR made changes that assumed we will have a semantic_text field type in ES|QL and this is no longer the case. The tests would be good to keep, we can validate that commands like GROK or DISSECT will continue to work with fields mapped as semantic_text.
carlosdelest
left a comment
There was a problem hiding this comment.
Can we include the changes from #119940, and add the test-release label to double check we're not causing trouble for CSV tests?
|
buildkite test this |
Backport
This will backport the following commits from
mainto8.x:Questions ?
Please refer to the Backport tool documentation