Skip to content

Conversation

fivetran-BradfordPaskewitz
Copy link
Collaborator

Links https://fivetran.atlassian.net/browse/RD-1038557

Documentation: https://docs.snowflake.com/en/sql-reference/functions/regexp_substr_all

Confirmed function is not supported by BigQuery, Redshift, PostgreSQL, Databricks, DuckDB, TSQL

Comment on lines 758 to 768
"REGEXP_SUBSTR_ALL": _build_regexp_extract(exp.RegexpExtractAll),
"REGEXP_SUBSTR_ALL": _build_regexp_extract(exp.RegexpSubstrAll),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this need to change? REGEXP_SUBSTR_ALL is an alias to REGEXP_EXTRACT_ALL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm good point. What should I do for situations like this? Just leave the existing business logic and add new tests for REGEXP_SUBSTR_ALL to annotate_functions.sql?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks, that makes sense. Updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants