You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run a materialized test leads to the following error:
12:09:48 Completed with 1 error and 0 warnings:
12:09:48
12:09:48 Compilation Error in macro decodable__create_table_as (macros/materializations/table/create_table_as.sql)
12:09:48 macro 'dbt_macro__decodable__create_table_as' takes not more than 3 argument(s)
12:09:48
12:09:48 > in macro create_table_as (macros/materializations/models/table/create_table_as.sql)
12:09:48 > called by macro statement (macros/etc/statement.sql)
12:09:48 > called by macro materialize_test_as_table (macros/materializations/test/test_as_table.sql)
12:09:48 > called by macro materialization_test_decodable (macros/materializations/test/test.sql)
12:09:48 > called by macro decodable__create_table_as (macros/materializations/table/create_table_as.sql)
It looks like even when removing the 4th argument from the test_as_table macro, it still fails because the target stream that is created is an append stream, and the pipeline that is created produces changes events that cannot be entered into this stream.
To verify this, I manually created the target stream as a change stream and removed the code raising an error if the target stream cannot be created. This resolved the issue, but surfaced another one (see next post).
When the pipeline for a materialized test is activated, it uses starting position latest. While this is in line with the interpretation of materialized tests as continuous testing of the model, it is different from the behavior when not materializing the test and surprised me at first. In my opinion, it would be desirable to either start from earliest or at least make it configurable.
Trying to run a materialized test leads to the following error:
Looking at the code, I see that the
create_table_as
macro takes only 3 arguments, while thetest_as_table
macro tries to call it with 4The text was updated successfully, but these errors were encountered: