-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add strpos
scalar string function.
#15624
Comments
can i work on this? |
Sure, assigned it to you |
Hello, so question is do we want to keep 0 indexed or 1 indexed? |
I'd favor postgres compatibility, but core team should advice |
I am done with the impl , please let me know if we are to follow postgres compatibility or want to go with 0 index? |
Let's do it PG compatible, 1 based and 0 for no match. |
ok |
This has been closed by #15815 |
Problem Statement
Add
strpos(string, substring) -> int
function, as it exists in PostgreSQL, see https://www.postgresql.org/docs/current/functions-string.htmlExample:
strpos('high', 'ig') -> 2
strpos('abracadabra', 'abra') -> 0
This would improve PostgreSQL and in my use case, Tableau integration.
Possible Solutions
No response
Considered Alternatives
No response
The text was updated successfully, but these errors were encountered: