mirror of https://github.com/citusdata/citus.git
Normalize tests: shard table names for multi_insert_select_conflict
parent
27997c054e
commit
1c4ea6836b
|
@ -33,10 +33,10 @@ s/ daily_uniques_[0-9]+ / daily_uniques_xxxxxxx /g
|
||||||
|
|
||||||
# In foreign_key_restriction_enforcement, normalize shard names
|
# In foreign_key_restriction_enforcement, normalize shard names
|
||||||
s/"(on_update_fkey_table_|fkey_)[0-9]+"/"\1xxxxxxx"/g
|
s/"(on_update_fkey_table_|fkey_)[0-9]+"/"\1xxxxxxx"/g
|
||||||
#
|
|
||||||
## In multi_insert_select_conflict, normalize shard name and constraints
|
# In multi_insert_select_conflict, normalize shard name and constraints
|
||||||
#s/"(target_table_|target_table_|test_ref_table_)[0-9]+"/"\1xxxxxxx"/g
|
s/"(target_table_|target_table_|test_ref_table_)[0-9]+"/"\1xxxxxxx"/g
|
||||||
#s/\(col_1\)=\([0-9]+\)/(col_1)=(X)/g
|
s/\(col_1\)=\([0-9]+\)/(col_1)=(X)/g
|
||||||
#
|
#
|
||||||
## In multi_name_lengths, normalize shard names
|
## In multi_name_lengths, normalize shard names
|
||||||
#s/name_len_12345678901234567890123456789012345678_fcd8ab6f_[0-9]+/name_len_12345678901234567890123456789012345678_fcd8ab6f_xxxxx/g
|
#s/name_len_12345678901234567890123456789012345678_fcd8ab6f_[0-9]+/name_len_12345678901234567890123456789012345678_fcd8ab6f_xxxxx/g
|
||||||
|
|
|
@ -306,8 +306,8 @@ NOTICE: truncate cascades to table "target_table"
|
||||||
col_2,
|
col_2,
|
||||||
col_1
|
col_1
|
||||||
FROM source_table_1 ON CONFLICT (col_1) DO UPDATE SET col_2 = 55 RETURNING *;
|
FROM source_table_1 ON CONFLICT (col_1) DO UPDATE SET col_2 = 55 RETURNING *;
|
||||||
ERROR: insert or update on table "target_table_1900000" violates foreign key constraint "fkey_xxxxxxx"
|
ERROR: insert or update on table "target_table_xxxxxxx" violates foreign key constraint "fkey_xxxxxxx"
|
||||||
DETAIL: Key (col_1)=(1) is not present in table "test_ref_table_1900012".
|
DETAIL: Key (col_1)=(X) is not present in table "test_ref_table_xxxxxxx".
|
||||||
CONTEXT: while executing command on localhost:xxxxx
|
CONTEXT: while executing command on localhost:xxxxx
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
|
|
Loading…
Reference in New Issue