Back to Chapters
Chapter Progress: 0 %0 / 5 Lessons Read
‹›

4. Meet Dataform: SQL pipelines made tidy

4.5 Run the right things: selections, tags and full refresh

Highlights & notes

Select lesson text to highlight it, or tap Add note.

    Bookmarks

    Bookmark a lesson to see it here.

      A project has 300 tables and you changed one. You do not want to rebuild all 300 to test it. Dataform lets you choose what to run.

      • All actions: everything
      • Selection of actions: the tables you pick. You can add their dependencies (what they need) or their dependents (what needs them).
      • Tags: every file that carries a tag, such as daily
      • Full refresh: rebuild incremental tables from zero

      The same choices exist as buttons in the workspace and as options of the dataform command line tool, which teams use in automated checks.

      Must Know:

      After you change a table, run it with its dependents in your dev dataset. A change that works alone can still break the tables that read from it.

      One table and what it needs

      The graph is stg_orders → int_orders → sales_by_city.

      Shell

      dataform run --actions int_orders --include-deps

      Result

      run 1: stg_orders
      run 2: int_orders
      not run: sales_by_city

      Quick check

      int_orders reads from stg_orders. Which word describes stg_orders?

      Tags and full refresh

      Two more ways to choose.

      Shell

      dataform run --tags dailydataform run --actions stg_orders --full-refresh

      Result

      run: all actions tagged daily
      stg_orders: dropped and rebuilt

      Quick check

      When do you need a full refresh of an incremental table?

      Try it yourself

      1. In your workspace click Start execution and choose a single action. Tick the option to include dependencies.
      2. Add tags: ["daily"] to two files and run by tag.

      Question 1 · Easy

      What does running by tag do?

      Question 2 · Medium

      You changed stg_orders. What should you also run to test safely?

      Question 3 · Hard

      What does a full refresh do to an incremental table?

      Key takeaways

      Choose what to run: all, a selection with its dependencies or dependents, or a tag. Use full refresh to rebuild an incremental table after its logic changes.

      Lesson 20 of 90

      Save your progress

      Start free and your progress, code and notes stay saved. Free for 1 month, no card needed.

      Start free Log in
      PreviousRun the right things: selections, tags and full refresh
      Save your progress free for 1 month. Start free · Log in