Lately I've seen many of the data-warehouses/lakes providers rolling out features that let's you run Python UDFs as part of your SQL command. And, runs it close to the data.
https://blog.jonudell.net/2021/07/24/pl-pgsql-versus-pl-pyth...
https://blog.jonudell.net/2021/08/13/pl-python-metaprogrammi...
https://blog.jonudell.net/2021/08/21/postgres-functional-sty...
[0]: https://apfel-db.informatik.uni-tuebingen.de [1]: https://db.inf.uni-tuebingen.de/publications/2022/Hirn-grust...