exmy opened a new pull request, #13594:
URL: https://github.com/apache/gluten/pull/13594

   
   ## What changes are proposed in this pull request?
   
   `FunctionParserRegexpExtract::adjustSparkRegexpRule()` scans the pattern for 
character class boundaries but does not skip `\X` escapes, so the `[` of `\[` 
and the `]` of `\]` are treated as class boundaries. For a pattern such as 
`\[(?:.*\.)?([^\.\s\]]+)` the class `[^\.\s\]]` gets merged with the escaped 
`\[` and the pattern turns into `(^\.\s\]+)`, where `^` becomes a line anchor, 
so the group can never match and `regexp_extract` returns an empty string for 
every row.
   
   Skip `\X` as an atomic unit while scanning brackets. The existing 
GLUTEN-5897 cases (`([0-9][[\.][0-9]]*)`, `([0-9][[]]]*)`) are unaffected.
   
   close #13593 
   
   
   ## How was this patch tested?
   
   Add a UT covering escaped brackets inside and outside a character class.
   
   ## Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: DeepSeek Harness (deepseek-v4.1-flash)
   


-- 
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]

Reply via email to