titus.pfaast.inferType

titus.pfaast.inferType(expr, symbols=None, cells=None, pools=None, fcns=None, version=0.0.0)[source]

Utility function to infer the type of a given expression.

Parameters:
  • expr (titus.pfaast.Expression) – expression to examine
  • symbols (dict from symbol name to titus.datatype.AvroType) – data types of variables used in the expression
  • cells (dict from cell name to titus.datatype.AvroType) – data types of cells used in the expression
  • pools (dict from pool name to titus.datatype.AvroType) – data types of pools used in the expression
  • fcns (dict from function name to titus.fcn.Fcn) – functions used in the expression
Return type:

titus.datatype.AvroType

Returns:

data type of the expression’s return value