Skip to main content

rewrite_dictionary_string_regex

Function rewrite_dictionary_string_regex 

Source
fn rewrite_dictionary_string_regex(
    binary: BinaryExpr,
    schema: &DFSchemaRef,
) -> Result<Option<Expr>>
Expand description

Removes the string coercion/schema-reconciliation cast present before physical regex planning.

Keeping the dictionary input lets DataFusion’s physical regex kernel evaluate scalar patterns against dictionary values instead of materializing the string column first.