Expand description
some utils for helping with batching mode
Structs§
- AddAuto
Column Rewriter - Add to the final select columns like
update_at
(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
- AddFilter
Rewriter - Find out the
Filter
Node corresponding to innermost(deepest)WHERE
and add a new filter expr to it - 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 - get_
table_ info_ df_ schema - sql_
to_ df_ plan - Convert sql to datafusion logical plan