-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Bug description
Attempted to replicate data records from a table named orders to another table in the same database and schema. I assumed that I could accomplish this by setting the destination configuration table value to orders_moved (which did not yet exist).
I expected the destination connector to check for orders_moved and if it did not exist, to create it, and begin replicating data records into the new table created orders_moved. Instead, I saw no results. The destination connector flipped to degraded. I looked up the logs on our platform to find the following error:
error while nacking message: failed to write message to DLQ: DLQ nack threshold exceeded (0/1), original error: failed to execute query for record 0: ERROR: relation "orders_moved" does not exist (SQLSTATE 42P01)
I had to create the table orders_moved in the database in order for records to replicate successfully.
This was just a simple example.
Which begs the question: How would this work with multiple tables? Could there be a _prefix tag in the destination config? I would expect some way to be able to differentiate the table in the event the table might already exist in the destination.
Steps to reproduce
- Create an application in the test tenant.
- Configure a PostgreSQL source connector with a table that contains data records.
- Configure a PostgreSQL destination connector, set
tablevalue to a table of choice that does not exist. - Deploy the application.
- Check the Datadog logs for the test tenant.
Version
v0.7.3
Metadata
Metadata
Assignees
Labels
Type
Projects
Status