How scdtype behaves when we have a new column added to the source table? - dbt

We have built models for our project and it was running fine. We have scdtyp2 models created , incremental models created having all the required data.
Issue is occuring when we have a new column being added to the source table.When running the dbt models , we are getting error for scdtype2 models-It fails to recognize the new column added.
I have tried using +On-schmema-change : Sync all column configuration , but it is still giving me error .
Is there any way to accomodate new columns to the already created scdtype2 tables without droping all these tables?

Related

Trouble Importing csv into pgAdmin 4 - Internal Server Error: 'columns'

I have added six empty tables with SQL into pgAdmin. I have six csv files with the same columns and I am trying to add them in concordance with an entity relationship diagram that includes column names, and key information. 5 have imported relatively easily. Trying to work out a different error with the last. However, I am frequently getting this error:
internal server error: 'columns'
This error seems to occurs before the request to add the csv can even be created. when I look at the "columns" tab in the import/export utility, none of the columns in the csv I am trying to import appear. When I use
SELECT * FROM table;
I can tell that the table columns have been created with the right names. This error is confusingly inconsistent as sometimes when I drop and add a table, using the same code I did previously, it seems to appear and disappear without cause. I have tried editing the SQL that I use to create the tables, changing the order in which I import the tables, changing FK and PK around in different tables, and reinstalling different versions of PGAdmin.
I had the same issue and resolved it by refreshing the DB connection (right click DB > refresh)
I think it doesn't know that you have added the columns so it's trying to tell you to add them, so refreshing should fix the confusion.

How to add/reflect query changes to the existing data in spark

I have a table created in production with incorrect data.My rec_srt_dt and rec_end_dt columns have been loaded wrongly. rec_srt_dt is sys_dt and now I have modified the query to load the data properly. My question is how do I have to handle the existing data present in production table and how to add new changes to that data?
My source table is oracle, Using Spark for the transformations and the target table is in AWS.
Kindly help me in this.

Unable to save a view in a different BigQuery project

I have my big query table Tab1 in GCP Project A. I have created a new GCP Project B. I have written a query that retrieves data stored in Tab1 and I want to store this as view in Project B.
I am getting an error like this:
Not found: Dataset Project A:Tab1 not found
Both projects are under the same organization. How do I create views in new projects based on data stored in another project.
If you are going to query a table that is not located in the project that you are using, you have to also specified the project_name in the FROM.
For instance,
SELECT * FROM `project_A.dataset.tab1`
Based on the error message, you are not doing that properly (`project_ID.dataset.table`)
If the rights are good, you can do as Alvaro said, othewise if it didnt works, you can add/declare some rights for your view as :
One possibility is to create an authorized view in the dataset permission ,
And after that you can add your view :

While adding data to Datable/DataRow getting the error as "Exception has been thrown by the target of an invocation." in UiPath

I am working on a excel automation project in UiPath, where need to update few details from one excel to other and while updating, the logic is working fine for first 2 entries after that getting the error as:
"Exception has been thrown by the target of an invocation."
Initialized the new Data Table and created a new Row in Data table.
Both the Keys and Values are not empty, but not sure why I am getting that issue.
Thanks
Harsha
I have create a new Data table, at the time of adding the new data columns in the Add Data Column Activity the Auto Increment was auto enabled that has created the issue. After disabling that the issue was resolved.

Adding a migration in the middle of previous migrations safe?

I have a minor issue which force me to introduce a new migration in between two migrations.
Short version of my question is: whether it is safe to introduce a new migration between previous two.
What I did
I need to have a table which will be filled from a file.
I added a table then imported data on the table by two migrations:
A migration which create a table with named ID column by using self.primary_key = some_id
A migration to import text data onto the table
The issue was, I forgot to add :id => false to the first migration. This cause id column to be created but haven't set correctly. Since I have primary key in some_id it does not cause problem up to now.
Rails 3.2.4
Now, I upgraded to Rails 3.2.4. Due to the change, it look like I need to set unique id before save. Which cause migration 2 above to fail.
The easiest fix is removing id column between above two migrations because I need test suite to build the database from scratch time to time. To make the import to work, I need to fix it before 2nd migration run.
Question
Now the question.
Since above migrations are deployed already, The migration will run after all of the migrations other than the one.
In my case, it looks like Ok to create such a migration (with timestamp in between above two).
Is it okay to do add migration like this way, in this case?