-
Notifications
You must be signed in to change notification settings - Fork 175
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
Better support for string matching in Snowflake #1406
Conversation
* Added support for str_starts() and str_ends() by using Snowflake's REGEXP_INSTR() function * Refactored str_detect() to use Snowflake's CONTAINS() function instead of hacking with REGEXP() which anchors the start and end by default
Thank you for working on Snowflake support!
|
Agreed about pattern matching! Serves me right for working on this late a night and not reading the Snowflake document page for I wonder if swapping over to |
I like it! I think the need to compare the result of I especially like it because I just realized
This isn't important for |
Sure - I can take a look at that. |
Move from using `REGEXP` to `REGEXP_INSTR` for cleaner syntax and support for case-insensitive search capabilities.
@fh-afrachioni Done - please take a look and let me know if there is anything further that might need adding. |
Hi @nathanhaigh , this looks great! I'm excited to finally have One observation: I think we might need another level of backslash escaping. In order to use |
Good catch @fh-afrachioni - fixed in the latest commit |
Is there anything further I need to do to get this PR merged? |
Thanks for making the update! I'm not a maintainer, but maybe @mgirlich would be willing to consider this lightweight change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Can you please add a bullet to the top of NEWS.md
? It should briefly describe the change and end with (@yourname, #issuenumber)
.
@hadley done :) |
Thanks! |
Came all the way here for the same issue in #1405 . I got confused that Now that I am relieved this will be fixed in the next stable release and all I should do now is wait. Great thanks! |
Satisfies #1405