-
Notifications
You must be signed in to change notification settings - Fork 4
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
[Feature Request] Patch regexp_instr for Trino, so that its compatible in dbt-expectations #21
Comments
instead of waiting on this to get worked on I just made a quick fork of the fork and I'm overriding the function ontop of this repo packages.yml
dbt_project.yml
this makes expectations work |
as soon as this gets worked on I'll use it from this repo |
@wjhrdy contributions to dbt-trino-utils are always more than welcome! If you are willing, you can submit PR with your changes and we'll review it. |
I've found and kind of addressed another issue with trino and dbt_expectations. The test unfortunately, the
if anyone wants to use this and is willing to risk using my package it is in the 0.2.1 tag
|
Yeah, I took it into account in this PR. But instead of adjusting tests, I changed macro |
aah that is a good approach thanks |
Trino is now supported directly in dbt_expectations. |
Patch regexp_instr for Trino, so that its compatible in dbt-expectations
Reference, of why am here.
https://github.com/calogica/dbt-expectations/issues/243
Is your feature request related to a problem? Please describe.
Lets support regex expectation for Trino on
https://github.com/calogica/dbt-expectations/blob/b21b13f020f5df2c90885d0715a2e713d1204700/macros/regex/regexp_instr.sql
Describe the solution you'd like
We can use this,
https://trino.io/docs/current/functions/regexp.html
regexp_position(string, pattern, start, occurrence) → integer
Lets group similar implementation like https://github.com/dbt-msft/tsql-utils/tree/main/macros/dbt_expectations ?
The text was updated successfully, but these errors were encountered: