Skip navigation links

Package org.apache.calcite.rex

Provides a language for representing row-expressions.

See: Description

Package org.apache.calcite.rex Description

Provides a language for representing row-expressions.


A SqlToRelConverter converts a SQL parse tree consisting of SqlNode objects into a relational expression (RelNode). Several kinds of nodes in this tree have row expressions (RexNode).

After the relational expression has been optimized, a JavaRelImplementor converts it into to a plan. If the plan is a Java parse tree, row-expressions are translated into equivalent Java expressions.


Every row-expression has a type. (Compare with SqlNode, which is created before validation, and therefore types may not be available.)

Every node in the parse tree is a RexNode. Sub-types are:

Expressions are generally created using a RexBuilder factory.

Related packages

Skip navigation links

Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.