BaşlayınÜcretsiz Başlayın

Trimming whitespaces with Jinja

Now that the entire dbt project is up and running, and you have debugged all the errors, it is time to apply some aesthetic changes.

During the development cycle for all the Jinja loops and macros, you might have noticed that Jinja keeps adding lots of line breaks into the compiled SQL logic when you call dbt compile.

The extra whitespace is making it hard to debug because of the constant scrolling. You are now looking for a way to modify the Jinja syntax to trim the extra whitespace.

Bu egzersiz

Case Study: Building E-Commerce Data Models with dbt

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün

Egzersizi başlat