You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 table value to a table of choice that does not exist.
Deploy the application.
Check the Datadog logs for the test tenant.
Version
v0.7.3
The text was updated successfully, but these errors were encountered:
justmisosoup
changed the title
Bug/Feature: PostgreSQL table name differentiation when syncing
Bug/Feature: PostgreSQL table name differentiation
Jun 6, 2024
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 configurationtable
value toorders_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 createdorders_moved
. Instead, I saw no results. The destination connector flipped todegraded
. I looked up the logs on our platform to find the following error: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
table
value to a table of choice that does not exist.Version
v0.7.3
The text was updated successfully, but these errors were encountered: