โ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
โ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.
โ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.
โ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.
โ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?
โ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?
โ05-08-2025 06:09 PM
I'm experience same issue where the columns added to except_column_list are being dropped instead of ignored.
โ06-24-2025 04:48 PM
Same here, it's kinda ridiculous that apply_changes doesn't support a parameter to update certain columns... how come that is not a priority since this was released?
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now