SQL / DataFrame Coverage#
This page summarises which operations are supported across the three
input paths — direct SQL strings, pandas-inspired DataFrame tracing, and
polars LazyFrame — when converting tabular data manipulations to ONNX.
SQL string coverage#
The following SQL constructs are handled by sql_to_onnx():
SQL construct |
Status |
Notes |
|---|---|---|
|
✔ supported |
column pass-through via |
|
✔ supported |
arithmetic: |
|
✔ supported |
|
|
✔ supported |
comparisons + |
|
⚠ partial |
per-group aggregation via |
|
✔ supported |
equi-join on a single key column; multiple JOINs supported |
|
✘ not supported |
parsed but raises |
|
✘ not supported |
not yet implemented |
|
✘ not supported |
not yet implemented |
|
✘ not supported |
not yet implemented |
Subqueries |
✔ supported |
inner query outputs become outer query columns |
String equality ( |
✘ not supported |
requires special ONNX string handling |
DataFrame tracer coverage#
The following TracedDataFrame and
TracedSeries operations are handled by
dataframe_to_onnx():
Operation |
Status |
Notes |
|---|---|---|
|
✔ supported |
column access |
|
✔ supported |
maps to |
|
✔ supported |
maps to |
|
✔ supported |
maps to |
|
⚠ partial |
per-group aggregation supported; multi-column keys cast to |
Series arithmetic ( |
✔ supported |
|
Series comparisons ( |
✔ supported |
|
|
✔ supported |
|
|
✔ supported |
|
|
✔ supported |
output rename |
|
✔ supported |
equi-join; |
|
✔ supported |
requires explicit |
Conditional branches ( |
✘ not supported |
tracing captures one execution path only |
Polars LazyFrame coverage#
The following polars operations are handled by lazyframe_to_onnx():
Polars operation |
Status |
Notes |
|---|---|---|
|
✔ supported |
column selection and arithmetic expressions |
|
✔ supported |
comparison and boolean predicates |
|
⚠ partial |
whole-dataset aggregation only |
Arithmetic ( |
✔ supported |
inlined into |
Comparisons ( |
✔ supported |
|
|
✔ supported |
|
|
✔ supported |
output rename |
Aggregation methods ( |
✔ supported |
|
|
✘ not supported |
not yet implemented |
|
✘ not supported |
not yet implemented |
|
✘ not supported |
not yet implemented |
|
✘ not supported |
not yet implemented |
Further reading#
SQL-to-ONNX Converter — SQL parser and emission details.
DataFrame Function Tracer — DataFrame function tracer design.
Polars LazyFrame to ONNX — Polars LazyFrame conversion design.