File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,8 @@ def test_incremental():
424
424
Column ("name" , String ),
425
425
Column ("updated_at" , DateTime ),
426
426
)
427
+ replication_key = "updated_at"
428
+
427
429
with engine .connect () as conn :
428
430
if table .exists (conn ):
429
431
table .drop (conn )
@@ -477,6 +479,7 @@ def test_incremental():
477
479
metadata ["metadata" ]["selected" ] = True
478
480
if metadata ["breadcrumb" ] == []:
479
481
metadata ["metadata" ]["replication-method" ] = "INCREMENTAL"
482
+ metadata ["metadata" ]["replication-key" ] = replication_key
480
483
481
484
test_runner = PostgresTestRunner (
482
485
tap_class = TapPostgres ,
@@ -489,7 +492,7 @@ def test_incremental():
489
492
"value" : {
490
493
"bookmarks" : {
491
494
altered_table_name : {
492
- "replication_key" : "updated_at" ,
495
+ "replication_key" : replication_key ,
493
496
"replication_key_value" : "2022-10-01T00:00:00+00:00" ,
494
497
},
495
498
},
You can’t perform that action at this time.
0 commit comments