-
Notifications
You must be signed in to change notification settings - Fork 19
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] Adding WHERE codintion during MERGE update #56
Comments
We are working on dbt-oracle 1.4 release which will support incremental predicates We will support incremental predicates in dbt-oracle conforming to rules defined by dbt Labs. I think, this will solve your feature request. Please read about it and I will let you know when the first cut is released on PyPI. Let me know if you have any questions |
Did you try incremental predicates ? Does it solve your usecase. |
Hi @aosingh Unfortunately is this not going to solve the usecase i have. I have now tried the new incremental predicates functionality and it works fine, except is doesn't accept a column in the ON statement to be updated: [0m07:00:02.502344 [info ] [Thread-1 (]: oracle adapter: Oracle error: ORA-38104: Columns referenced in the ON Clause cannot be updated: "DBT_INTERNAL_DEST"."END_DATE" Below is the query generated by DBT using incremental predicates. yaml:
Sql:
The result I was expecting would be:
|
@philiphagglund understood the problem. I guess i need to think about how to support this conditional update clause during MERGE. Probably, a parameter which can be supplied by the user during incremental materialization config. |
Hi,
It would be nice to be able to controll the incremental merge strategy by adding a WHERE clause to the
WHEN MATCHED THEN
part of the merge statement. As i see on dbt-oracle github it seems the adapter doesn't support it.I got recommended by #db-oracle on dbt slack to raise a feature request so it gets tracked.
Describe alternatives you've considered
This is the repons i got from #db-oracle slack channel from @aosingh:
Who will this benefit?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: