Skip to content

[DISCUSSION] Conditional Utf8View support for downstream projects #16903

@comphead

Description

@comphead

Is your feature request related to a problem or challenge?

Datafusion Comet encountered a migration issue when upgrading to DataFusion 49, caused by #16290
which introduces Utf8View and replaces Utf8 for md5 function.

Although the runtime behavior is mostly controlled via configuration parameters added in PR #16809 we found that several function signatures have already been hardcoded to Utf8View.

Specifically for Comet project the Utf8View support is still in progress and hardcoding Utf8View makes migrations harder, in this particular case we do a unnecessary cast back to Utf8

It would be great to get more flexible support for Utf8View in DataFusion, ideally in a conditional or opt-in manner, and particularly in builtin functions where it is not feasible to access the SessionContext and make a return type by runtime configuration.

Maybe we can think of features to build the DataFusion with or without Utf8View?

Appreciate your thoughts

Comet migration PR apache/datafusion-comet#2040
Related to #16235

@alamb @andygrove @mbutrovich @zhuqi-lucas

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

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