@Yarden
For this use case, Databricks does not have built-in triggers directly tied to Delta table write operations, as seen in traditional databases. However, you can achieve this functionality using one of the following approaches:
Approach 1: File Arrival Triggers (Databricks Workflows)
You can configure a Databricks workflow to trigger based on file arrivals in a directory. If table A writes files to a specific location (e.g., S3 or ADLS), a workflow can be set up to trigger whenever new files are detected.
Steps:
- Configure the workflow to monitor the location where table Aโs data is written.
- Set the workflow to trigger the syncing logic that updates table B.
- For more details, review the relevant documentation
Approach 2: Databricks Autoloader with Directory Listing
Another option is to use Autoloader on the directory where table A's data is written. When new files are added to the directory, Autoloader can trigger a job to sync the data from table A to table B.