xiangfu0 opened a new pull request, #17156: URL: https://github.com/apache/pinot/pull/17156
This PR adds a polymorphic scalar UDF ARRAYHASANY for array overlap checks, plus integration tests.\n\nChanges\n- New PinotScalarFunction: ArrayHasAnyScalarFunction under org.apache.pinot.common.function.scalar.array, registered as ARRAYHASANY\n- Supports int[], long[], float[], double[], and String[] via FunctionInfo type dispatch\n- Integration tests in ArrayTest: literal overlap cases, MV column filter cases, and self-overlap (col vs col) assertions for LONG_ARRAY and DOUBLE_ARRAY\n\nNotes\n- Follows ArrayLengthScalarFunction pattern for type-based dispatching\n- Returns true iff the two arrays share at least one common element\n- Uses HashSet built from smaller input for time/memory efficiency\n\nValidation\n- mvn -pl pinot-common,pinot-integration-tests -am -DskipITs=false clean test\n\nFuture work\n- Optional: add boolean-array overload support if needed\n- Optional: planner-side conveniences for broader implicit casts -- 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]
