Omega359 commented on issue #16903: URL: https://github.com/apache/datafusion/issues/16903#issuecomment-3136654771
> Any other solutions? Is it possible for us to investigate the SessionContext to support runtime configuration? May be additional field or metadata store, i don't have some ideas about this until now. I think that exists now in different forms. There are VarProviders for runtime variables (@variable and @@variable I think) however those are not accessible to UDFs. ConfigOptions has Extensions that allow for custom config, however currently that isn't accessible in a UDF either (PR #16970 among others). For something like that I would think the best option would be a standardized config (`datafusion.execution.target_string_type` perhaps?) that defaults to Utf8View but can be changed to Utf8 or LargeUtf8. Updating all the UDF's and other code to emit data in the appropriate type would generally be fairly easy but time consuming. I'm not sold on using feature flags for this tbh as it seems a bit overkill. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org