Trait

Card Puncher Data Processing

Calcite - Traits (Relational expression validation)

About

Traits represents a trait of a relational expression that does not alter the execution. They are used to validate the plan output.

They implements the RelTrait interface and

Type

Three primary traits type:

  • Convention
  • Recollation
  • RelDistribution

Conventions

convention is a type of trait. They are used to represent a single data source. More Calcite - Convention





Discover More
Calcite Conventions
Calcite - Convention

A convention is a type of trait They are used to represent a single data source Inputs to a relational expression must be in the same convention A convention is associated with a RelNode interface...
Card Puncher Data Processing
Calcite - Optimizer (RelOptCluster)

The optimizer is a program that takes a relational expression (query plan) and rewrites it with optimization rules. The output is still a relational expression and is generally called the physical plan....
Card Puncher Data Processing
Calcite - Relational Expression (RelNode, Algebra)

Relational Algebra in Calcite A relational expression is represented by a tree of RelNode. A RelNode can be considered as the same logic than the Spark dataframe. TableScan Project Filter...



Share this page:
Follow us:
Task Runner