Expand description
some utils for helping with batching mode
Structs§
- AddFilter
Rewriter - Find out the
FilterNode corresponding to innermost(deepest)WHEREand add a new filter expr to it - Column
Matcher Rewriter - Optionally add to the final select columns like
update_atif the sink table has such column (which doesn’t necessary need to have exact name just need to be a extra timestamp column) and__ts_placeholder(this column need to have exact this name and be a timestamp) with values likenow()and0 - Find
Group ByFinal Name - Helper to find the innermost group by expr in schema, return None if no group by expr
Functions§
- df_
plan_ to_ sql - gen_
plan_ 🔒with_ matching_ schema - Generate a plan that matches the schema of the sink table from given sql by alias and adding auto columns
- get_
table_ info_ df_ schema - sql_
to_ df_ plan - Convert sql to datafusion logical plan Also support TQL (but only Eval not Explain or Analyze)