Hello team, I am new to this. Trying to implement ...
# community-support
a
Hello team, I am new to this. Trying to implement volume anomaly test at table level. But it's not updating on new runs even after running again. It is showing skipped in status in edr report. Can someone help me in resolving this? Thanks in advance!
i
Hey @Anil, here to help 🙂 Can you share with me how you configured the test, and if you have your dbt.log, that as well? It will help me understand what might be the problem 🙏
a
Hey thanks for the reply, it worked out. Issues was, another dbt test got failed and it was not reaching till model where elementary test was written. Another query I am having is regarding, elementary python custom test. So if my model is incremental and if I run a custom test, it will run the test on new chunk of data or whole dataset?
Copy code
{% macro compare_tables(args) %}
import pandas as pd

def test(model_df, ref, session):
    original_table = model_df.toPandas().drop_duplicates()
    other_table = ref('{{ args.other_table }}').toPandas().drop_duplicates()
    return pd.concat([original_table, other_table]).drop_duplicates(keep=False)
{% endmacro %}
i
Got it! For your next question - answered here 🙂