Module df_optimizer

Module df_optimizer 

Source
Expand description

Datafusion optimizer for flow plan

Structsยง

CheckGroupByRule ๐Ÿ”’
This rule check all group by exprs, and make sure they are also in select clause in a aggr query
FindColumn ๐Ÿ”’
Find all column names in a plan

Functionsยง

apply_df_optimizer
check_group_by_analyzer ๐Ÿ”’
make sure everything in group byโ€™s expr is in select
sql_to_flow_plan
To reuse existing code for parse sql, the sql is first parsed into a datafusion logical plan, then to a substrait plan, and finally to a flow plan.