Skip to content

Support for contains function in datafusion substrait consumer #10861

@richtia

Description

@richtia

Is your feature request related to a problem or challenge?

Datafusion does not have a contains function and will return an exception if a substrait plan contains it

Exception: DataFusion error: NotImplemented("Unsupported function name: \"contains:str_str\"")

Describe the solution you'd like

When the datafusion consumer sees the contains function, it can convert it to a combination of strpos + >

strpos(lit("abcd"), lit("de") > 0

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestsubstraitChanges to the substrait crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions