Skip to content

Commit

Permalink
change merge change test to make it pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Apr 23, 2024
1 parent 1208ccd commit 0ca6c36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/load/pipeline/test_write_disposition_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,15 @@ def source():
# schemaless destinations allow adding of root key without the pipeline failing
# for now this is only the case for dremio
# doing this will result in somewhat useless behavior
destination_allows_adding_root_key = destination_config.destination == "dremio"
destination_allows_adding_root_key = destination_config.destination in ["dremio", "clickhouse"]

if destination_allows_adding_root_key and not with_root_key:
pipeline.run(
s,
table_name="items",
write_disposition="merge",
loader_file_format=destination_config.file_format,
)
return

# without a root key this will fail, it is expected as adding non-nullable columns should not work
Expand Down

0 comments on commit 0ca6c36

Please sign in to comment.