The engine, LazyFrame, DataFrame and duql use native kernels, never Arrow
Rule#
Write engine operations as native kernels over Series and DataFrame. Arrow appears only at the explicit import and export edge. Do not route a native operation or Python conversion through Arrow merely to reuse an existing implementation.
Why#
The user said: everything should be native kernel, in LazyFrame, our DataFrame and duql, not using Arrow; Arrow is only at the edge. Reusing the old Arrow-backed asof op made duql asof depend on the Arrow build, although a native overlap kernel had no such need.
How to apply#
Trace an operation's implementation before reuse; its public name alone does not show whether it depends on Arrow. Keep Arrow guards around explicit interop rather than entire binding files. Preserve native operations and native Python conversions in Arrow-off builds.
Transcript b384592cc6 records the subsequent cutover: window, gap_fill, asof and interval moved to dataframe/ops/ as built-in operations in exported_frame_ops.def, with shared ordering in kernels/order.{h,cpp}. The public op names stayed unchanged. Commit 712ba5d2 replaced the Arrow implementations, so the earlier lesson's claim that a native asof kernel was still owed is obsolete. Transcript 8397caa9dd records the later native storage and Python-conversion work.
Also found by searching
- duql asof now requires the Arrow build because it reuses the old Arrow-backed op
- should a new LazyFrame or DataFrame operation go through Arrow to reuse existing code
- how should I implement a new engine operation in dftracer-utils, native kernel or Arrow compute
- Arrow only at import export boundary, convert Series via arrow for python conversion is that allowed
- can I reuse the Arrow-backed asof op for the duql asof implementation
- should engine ops in LazyFrame and DataFrame call Arrow for convenience
- where is Arrow allowed in the dftracer-utils engine
- duql asof depends on Arrow build, native overlap kernel vs arrow kernel, native Series DataFrame