You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by "Zkplo (via GitHub)" <gi...@apache.org> on 2024/09/28 15:01:17 UTC

[I] [Feature][SDK] Transform SQL supports INSTR function [inlong]

Zkplo opened a new issue, #11239:
URL: https://github.com/apache/inlong/issues/11239

   ### Description
   
   - parent issue #10796 
   - MySql Official Description: https://dev.mysql.com/doc/refman/8.4/en/string-functions.html#function_instr
   
   INSTR(str,substr): Returns the position of the first occurrence of substring substr in string str. 
   This is the same as LOCATE(). So just add the instr function name in locateFunction.
   
   ### Use case
   
   ```sql
   INSTR('foobarbar', 'bar');   -> 4
   INSTR('xbar', 'foobar');     -> 0
   ```
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org