Skip to content

Add support for string view to a few functions #13330

@timsaucer

Description

@timsaucer

Is your feature request related to a problem or challenge?

These functions are failing when passing in a string view instead of a string. Now that string view is the default type, it is causing some regressions on existing code that have to be modified.

Describe the solution you'd like

Add options of passing in string view to these:

  • ArrayToString
  • NamedStructFunc
  • DateBinFunc (I couldn't quite track down where the Utf->Interval or Timestamp conversion occurs
  • BitLengthFunc
  • ConcatFunc (gives error on optimizer not matching schema)
  • EncodeFunc

Describe alternatives you've considered

No response

Additional context

These were discovered during the datafusion-python migration to DF43.0.0. This commit is where I made adjustments in that repo to account for these: apache/datafusion-python@fcb5f96

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions