when data source is empty and write disposition is replace
, the destination table is not truncated
#263
Labels
bug
Something isn't working
Description
When a resource has write disposition set to
replace
and it yields no data,dlt
skips the loading process for that resource. Instead it should load "empty" file with the result of truncating destination table.Steps to reproduce
Proposed fix
extract
step but produced no data items. a table schema for such resource already exists (it is not a first extract). in that case we must somehow truncate the target table(s). we could generate an empty file and handle this situation downstream.replace
write disposition must always use staging dataset. #271 must be implemented firstTests
We must test thoroughly
The text was updated successfully, but these errors were encountered: