DLT Apply Changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 07:05 AM
Hi,
In DLT, how do we specify which columns we don't want to overwrite when using the “apply changes” operation in the DLT (in the attached example, we want to avoid overwriting the “created_time” column)?
I am using this sample code
But instead, except_column_list drops this column from the target table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 09:28 AM
Hi @ankitmit ,
If you check the documentation of APPLY CHANGES, there is no parameter to exclude the column from being updated.
As you noticed, columns parameter is used to specify the columns included in the target table, so excluding created_table, means the column will not be available in the target table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 09:29 AM
There might be a misunderstanding regarding the except_column_list parameter in the apply_changes function. This parameter is used to specify which columns to exclude from the changes, but in this case, it seems like it’s dropping the created_time column instead of preserving it.
One approach to consider is ensuring that the data types and configurations are compatible with the intended functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 11:53 PM
Yes, that's exactly the problem. except_column_list is dropping the column from the target table instead of excluding them from the changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 12:50 AM
I am facing a similar issue. Is there any solution to select which columns to update when using "apply changes" operation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2025 11:04 AM
In my case, 3 files were loaded at same time which has records with same keys but increasing sequence by value. I added date column in track_history_except_column_list in order to avoid tracking of history but values of date column came different for all records. Can anyone explain why this is happening?

