yobx.sql.ops — filter_op module#

ONNX converter for FilterOp (SQL WHERE clause).

yobx.sql.ops.filter_op.convert_filter_op(g: GraphBuilderExtendedProtocol, sts: Dict | None, outputs: List[str], op: FilterOp, col_map: Dict[str, str], right_col_map: Dict[str, str]) Dict[str, str][source]#

Apply a WHERE filter to every column in col_map using Compress.

Parameters:
  • g – the graph builder to add ONNX nodes to.

  • sts – shape/type context dict (forwarded verbatim; may be empty).

  • outputs – expected output column names (keys of the returned col_map).

  • op – the FilterOp describing the condition.

  • col_map – mapping from column name to current ONNX tensor name.

  • right_col_map – unused for filter; present for uniform signature.

Returns:

a new col_map with each column tensor replaced by its filtered (row-compressed) counterpart.