clintropolis opened a new pull request, #17162: URL: https://github.com/apache/druid/pull/17162
Fixes an issue after #17098 that can occur with `array_to_mv` function resulting from a couple of things happening. The first problem is that `VectorValueMatcherColumnProcessorFactory` method `makeObjectProcessor` had special handling for `STRING`, but not further specialization for when it was multi-valued. So, this PR adds `MultiValueStringObjectVectorValueMatcher` to handle cases where an object selector is asked for a multi-value string. Secondly, expression virtual columns were not expecting multi-value string expressions, so `ExpressionVectorSelectors` has been updated to check for array typed outputs but with a string type hint, and use a newly added `ExpressionVectorMultiValueStringObjectSelector` which coerces the values multi-value style back into `List` or `String` as appropriate. Added tests also led to another bug being fixed when array_to_mv was used on a null array row. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
