pathway icon indicating copy to clipboard operation
pathway copied to clipboard

support UDTF in pathway.

Open tempbottle opened this issue 11 months ago • 3 comments

Is your feature request related to a problem? Please describe. Query external tables in pathway task exec.

Describe the solution you'd like Solution like datafusion, it support UDTF to query another database. For example, https://github.com/datafusion-contrib/datafusion-table-providers can support many database.

Describe alternatives you've considered

Additional context

tempbottle avatar Jan 15 '25 07:01 tempbottle

Hey @tempbottle, thank you for a suggestion. However, I'd like to clarify what exactly you're proposing. If you mean operating on multiple rows at once in a single UDF, it is on our roadmap. If you mean the possibility to query other sources than those currently available, you can do that using the python connector. If you mean adding the possibility to write new connectors in rust by external users, it is not currently planned, but we may consider it.

KamilPiechowiak avatar Jan 17 '25 10:01 KamilPiechowiak

@KamilPiechowiak Thanks for your answer. I'll investigate the python connector. Is there any document or example for how to write rust connectors?

tempbottle avatar Jan 27 '25 05:01 tempbottle

Hey @tempbottle, Sorry for the late answer. There are no docs regarding writing rust connectors. External users are not supposed to do that. If you have a specific connector in mind, you can name it and we'll consider adding it. Or you may create a PR with a new connector (if you think it would be useful for the pathway community) but we don't have any guides. You can only extract information from other connector implementations.

KamilPiechowiak avatar Feb 17 '25 11:02 KamilPiechowiak