opensearch-project / user-behavior-insights

User Behavior Insights plugin for OpenSearch
Apache License 2.0
20 stars 5 forks source link

[BUG] A `object_id_field` will throw `class java.util.ArrayList cannot be cast to class java.lang.String` #26

Closed jzonthemtn closed 1 month ago

jzonthemtn commented 1 month ago

What is the bug?

When providing an object_id_field in the ext of a search request, the plugin will throw class java.util.ArrayList cannot be cast to class java.lang.String

jzonthemtn commented 1 month ago

This is actually an issue with the data set that is being used for testing. The value of the object_id_field is an array and should be a string. However, there should be better error handling to fail gracefully in that case.