Jithendra2608 opened a new pull request, #23722: URL: https://github.com/apache/datafusion/pull/23722
## Which issue does this PR close? This PR fixes the internal error thrown when SIMILAR TO is used with a dictionary-encoded value and a non-scalar array pattern, as described in #23709. --> - Closes #23709 . ## What changes are included in this PR? 1.Added a DataType::Dictionary match arm to regex_match_dyn in kernels.rs that mirrors the scalar path. 2.Unpacks the dictionary using the take kernel and routes it back into the standard string matching paths. 3.Added an sqllogictest to regexp_match.slt to verify the fix against the failing query. ## Are these changes tested? <!-- Yes. Added a new sqllogictest to datafusion/sqllogictest/test_files/regexp/regexp_match.slt. This test specifically covers the reproducer from #23709, verifying that regex_match_dyn successfully evaluates a Dictionary(Int32, Utf8) encoded array against a non-scalar array pattern without throwing an internal error. --> -- 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]
