Тёмный

#17 Write Custom tests for models in dbt project  

CloudFitness
Подписаться 19 тыс.
Просмотров 530
50% 1

If you need any guidance you can book time here, topmate.io/bha...
Follow me on Linkedin
/ bhawna-bedi-540398102
Instagram
www.instagram....
You can support my channel at: bhawnabedi15@okicici
Data-bricks hands-on tutorials
• Databricks hands on tu...
Azure Event Hubs
• Azure Event Hubs
Azure Data Factory Interview Question
• Azure Data Factory Int...
SQL leet code Questions
• SQL Interview Question...
Azure Synapse tutorials
• Azure Synapse Analytic...
Azure Event Grid
• Event Grid
Azure Data Factory CI-CD
• CI-CD in Azure Data Fa...
Azure Basics
• Azure Basics
Data Bricks interview questions
• DataBricks Interview Q...

Опубликовано:

 

19 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@prashantmhatre1328
@prashantmhatre1328 5 месяцев назад
Hello Mam, This is not called as custom test case in dbt. This is singular test case , Custom test case is one which either we can create a macro or we write in folder tests/generic/Custom_test_name. below is the way we can write a Custom test {% test check_min_night_more_than_1k(model, column_name) %} select * from {{ model }} where {{ column_name }} > 1200 {% endtest %} then call this test in your >yml file same as like Unique and not null test case like below. - name: dim_listings_cleansed columns: - name: listing_id tests: - unique - not_null - name: minimum_nights tests: - check_min_night_more_than_1k Thanks. and also I like your videos ,keep going.
@shilpagowda4231
@shilpagowda4231 3 месяца назад
Yes correct