Blocks

Blocks

The key component of DataShell schemas are blocks. These foundational units represent the structure of your data warehouse architecture. Blocks can hold fields or other blocks inside them, making them the most important structure unit to grasp.

Components

A block is made out of the following pieces:

  1. A block type - Blocks can be of different types. Some examples of this could be schema or table. This is a required part when creating a block.
  2. A block name - This ensures that we can uniquely identify blocks of the same type in a project. This is optional, but some block types require names.
  3. Children - Blocks can have other blocks or fields as children.

Syntax

block_type block_name {
  ...
}
Previous
Grammar