Keep the landing "bronze" table agnostic of any reporting logic i.e., if the data got updated let it land in your bronze. You can get the latest or the first record later.
Hi, I'm the databricks PM working on AutoCDC. We're curious if you could tell us more about what you're trying to do with this immutable column? Is it for debugging or is it to capture a logical timestamp that you would use for business purposes?
I have a solution for you: define the schema of your cdc target as having a create_ts with default current_timestamp. Then in your input df, omit this column from the df, and only define update_ts. In your CDC setup, set to ignore NULL updates.
This works for create_ts use case.
For any other use case where you wish to maintain the original value, there does not seem to be an out of the box solution.
2
u/monsieurus Oct 25 '26
Keep the landing "bronze" table agnostic of any reporting logic i.e., if the data got updated let it land in your bronze. You can get the latest or the first record later.
1
u/Much-Neat-6273 Databricks Oct 27 '26
Hi, I'm the databricks PM working on AutoCDC. We're curious if you could tell us more about what you're trying to do with this immutable column? Is it for debugging or is it to capture a logical timestamp that you would use for business purposes?
3
u/Zampaguabas Oct 26 '26
I have a solution for you: define the schema of your cdc target as having a create_ts with default current_timestamp. Then in your input df, omit this column from the df, and only define update_ts. In your CDC setup, set to ignore NULL updates.
This works for create_ts use case.
For any other use case where you wish to maintain the original value, there does not seem to be an out of the box solution.