-
Notifications
You must be signed in to change notification settings - Fork 16
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
Teradata run_result.json has rows_affected = 0 always when data are inserted into target table, and code shows success instead of insert or update #145
Comments
More details 1,
2, We don't have "target" relation returned in the end. 3, Here is the SQL for write mode = insert, table action = drop table then create the new table then insert.
4, Here is the SQL for write mode = update
|
We're looking into this, @cindyzh-ibm. We'll share an update as soon as it's fixed. FYI @VarunSharma15 |
Looking at this just as another user.
|
Having said that @cindyzh-ibm, if you provide us more insights in the use-case on the dbt-teradata slack channel. Maybe we could figure out a way to help you reach your desired outcome with a more traditional dbt structured project, that might generate the artifacts you are looking for. |
Thanks @Daniel-Itzul 1, The code in the run_results.json is SUCCESS. We would like to have either INSERT, UPDATE or DELETE, etc. 2, I attach a zip file which include our model, project, log. Hopefully it helps for you to debug. Note
|
Describe the bug
I have a flow using dbt to insert data to target teradata table, the run_results.json rows_affected = 0 always for insert.
In addition, the code = SUCCESS, which i cannot tell it is insert or update.
Steps To Reproduce
As long as you have teradata as target, using dbt run, and get run_results.json. The issue is there.
Expected behavior
I expect code = INSERT, UPDATE, or DELETE instead of SUCCESS or FAIL
In addition, I expect rows_affected = rows either insert to target db, update in target db, or delete from target db.
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
The output of
dbt --version
:The operating system you're using:
The output of
python --version
:Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: