[][src]Module datafusion::optimizer::utils

Collection of utility functions that are leveraged by the query optimizer rules

Functions

expr_to_column_indices

Recursively walk an expression tree, collecting the unique set of column indexes referenced in the expression

expr_to_field

Create field meta-data from an expression, for use in a result set schema

exprlist_to_column_indices

Recursively walk a list of expression trees, collecting the unique set of column indexes referenced in the expression

exprlist_to_fields

Create field meta-data from an expression, for use in a result set schema

get_supertype

Given two datatypes, determine the supertype that both types can safely be cast to