Omega359 commented on issue #11946:
URL: https://github.com/apache/datafusion/issues/11946#issuecomment-2429470308

   > Related to this, `substring` in Postgres supports regex matching (see 
https://www.postgresql.org/docs/current/functions-matching.html), would it be 
reasonable for DataFusion to also support it?
   > 
   > The currently accepted argument types are:
   > 
   > ```
   >                     Exact(vec![Utf8, Int64]),
   >                     Exact(vec![LargeUtf8, Int64]),
   >                     Exact(vec![Utf8, Int64, Int64]),
   >                     Exact(vec![LargeUtf8, Int64, Int64]),
   >                     Exact(vec![Utf8View, Int64]),
   >                     Exact(vec![Utf8View, Int64, Int64]),
   > ```
   > 
   > Postgres's regex substring takes a string, a pattern, and an escape 
character, so I don't think there would be a conflict.
   
   I took a look at the syntax for that pg function, and frankly it's awful. 
Personally I think that is a function best ignored.


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