Open parsable-alex-antonison opened 1 year ago
Adding a bit more context. The issue occur also for simple models like:
{{ config(
materialized='incremental',
incremental_strategy='merge',
unique_key='user_id',
table_type='iceberg',
force_batch='true'
) }}
select 1 as user_id, 'a' as user_name
The issue seems to be in get_partition_batches and create_table_as_with_partitions
Here are some possible solutions:
@svdimchenko FYI.
Oh, I didn't see this when I searched before opening #656 , will close in favour of this one.
I have a fix in progress on #658
dbt version: 1.7.0 use case: I am processing CDC data from a database into Athena Iceberg tables. issue: While I can successfully run the first load of the query, when I go to run an incremental model without any data, it will fail when it is attempting to query a table that does not exist.