Skip to content

Support SQL to Substrait conversion for List functions in Isthmus #757

@limameml

Description

@limameml

Support SQL to Substrait conversion for List functions in Isthmus

Work needed:

  • Create a new ListFunctions class (similar to AggregateFunctions) for defining Calcite SQL operators for list/array functions with proper lambda type inference
  • The class should define TRANSFORM, FILTER, ANY_MATCH, ALL_MATCH, etc. with:
    • Custom SqlReturnTypeInference that infers return types from lambda return types
    • Custom SqlOperandTypeChecker that validates lambda parameter types match array element types
  • Update SubstraitOperatorTable to use the new ListFunctions definitions
  • Add tests for SQL-to-Substrait roundtrip with lambda functions

related work:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions