How to implement testing in data build tool (dbt) | Tutorial for beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 13

  • @JasonZhang-se2jo
    @JasonZhang-se2jo 2 ปีที่แล้ว +1

    is the yaml file needs to be stored within the same folder with the model, if there are any tests defined for that model

    • @mastering_snowflake
      @mastering_snowflake  2 ปีที่แล้ว

      When you run dbt test, dbt iterates through your YAML files, and constructs a query for each test. Within your YAML file you’ll state the model the tests relate to. Placing the YAML file in the same folder can help to locate the tests easily especially as your model grows.

  • @mohamdhaji592
    @mohamdhaji592 11 หลายเดือนก่อน

    is there a way to write complex query on sources and compare its result with final data ? is this possible or does this require automation etl test tool?

  • @JasonZhang-se2jo
    @JasonZhang-se2jo 2 ปีที่แล้ว +1

    could we take the generic tests as the embedded test from DBT, and the custom ones are just like self-defined ones

  • @SriHarshaRamineni
    @SriHarshaRamineni 2 ปีที่แล้ว +1

    is there a way to pass additional model parameters into all the tests? and example is shown below. If I want the custom_test to access primary_key of the model, how would I call it in the generic test as a parameter?
    models:
    - name: model1
    primary_key: column1
    columns:
    - name: column2
    tests:
    -custom_test

    • @mastering_snowflake
      @mastering_snowflake  ปีที่แล้ว

      I would look at writing a custom generic test which allows you to pass in variable values such as a column name of your primary key.
      It works much like a dbt macro. More info is here docs.getdbt.com/guides/best-practices/writing-custom-generic-tests

  • @Jln464001sati
    @Jln464001sati ปีที่แล้ว

    Hey Adam,
    I am facing one issue like I am not able to access any new table through dbt whatever I am creating in snowflake (after dbt and snowflake connection).
    I am getting error that object does not exist or not authorized.
    I am not sure if it is permission issue.
    Please help to resolve this issue.
    Thanks

    • @mastering_snowflake
      @mastering_snowflake  ปีที่แล้ว

      Hey this will be a permissions issue. You would have created tables in Snowflake using a role/database your dbt role didn’t have access to.

    • @mastering_snowflake
      @mastering_snowflake  ปีที่แล้ว

      Better to create your tables through dbt

  • @Navinneroth
    @Navinneroth 2 ปีที่แล้ว

    Useful Adam ..thank you !

  • @berknoyan7594
    @berknoyan7594 ปีที่แล้ว

    yakışıklı abim, eline sağlık👍