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 14:29:16 UTC
[I] [Feature][SDK] Transform SQL supports FIND_IN_SET function [inlong]
Zkplo opened a new issue, #11236:
URL: https://github.com/apache/inlong/issues/11236
### Description
- parent issue #10796
- MySql Official Description: https://dev.mysql.com/doc/refman/8.4/en/string-functions.html#function_find-in-set
FIND_IN_SET(str,strlist): Returns a value in the range of 1 to N if the string str is in the string list strlist consisting of N substrings. A string list is a string composed of substrings separated by , characters. Returns 0 if str is not in strlist or if strlist is the empty string. Returns NULL if either argument is NULL. This function does not work properly if the first argument contains a comma (,) character.
### Use case
```sql
FIND_IN_SET('b','a,b,c,d'); -> 2
```
### 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