Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for running python UDF? #424

Open
selvavm opened this issue Oct 3, 2022 · 4 comments
Open

Support for running python UDF? #424

selvavm opened this issue Oct 3, 2022 · 4 comments

Comments

@selvavm
Copy link

selvavm commented Oct 3, 2022

I would like to run temporary Python UDF using this client. Is it possible?

My use case includes a complex python app which should execute queries and python UDF, something similar to pyspark. Snowflake has this support using Snowpark. In Snowpark, the python UDF is staged in a server location and then executed in Snowflake server with a simple dataframe API (internally the dataframe is converted to a Snowflake query and executed). Can we have something similar here?

We can use inspect.getsource() as mentioned in docs

@selvavm selvavm changed the title Support for running python IDF? Support for running python UDF? Oct 3, 2022
@anshulsharmas
Copy link

Have you checked Python plugin? The Python plugin runs a user-defined function (UDF) using a Python script.
https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/pythonplugin?pivots=azuredataexplorer

@selvavm
Copy link
Author

selvavm commented Oct 21, 2022

Thanks and yes. But I wanted to pass a function to the azure-kusto-python and wanted it to transform that as a query rather than I create a query in string format.

@yogilad
Copy link
Contributor

yogilad commented Mar 19, 2023

We can consider this after adding KQL statement support, as in Go

@anshulsharmas
Copy link

@selvavm can you please elaborate your scenario with an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants