You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML] Support fields with commas in data frame analytics analyzed_fields (#91710)
This commit fixes a bug where fields containing comma (`,`) in their name
would result in error when the `_start` or `_explain` APIs are called.
If the field was `comma,field` for example, we would split the field
into two tokens `comma` and `field` and thus the error would be that
those fields could not be detected in the source index.
Closes#72541
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -327,16 +327,15 @@ private void includeAndExcludeFields(Set<String> fields, Set<FieldSelection> fie
327
327
try {
328
328
// If the inclusion set does not match anything, that means the user's desired fields cannot be found in
329
329
// the collection of supported field types. We should let the user know.
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetectorTests.java
+57-1Lines changed: 57 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1332,7 +1332,63 @@ public void testDetect_GivenAnalyzedFieldExcludesNestedField() {
1332
1332
assertThat(e.getMessage(), equalTo("analyzed_fields must not include or exclude object or nested fields: [nested_field]"));
0 commit comments