Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

UDFs in Python for BigQuery

Does BigQuery supports UDFs in Python ?

Solved Solved
0 3 3,562
1 ACCEPTED SOLUTION

In BigQuery, User-Defined Functions (UDFs) can be written in SQL or JavaScript, but not directly in Python. However, you can use Python to interact with BigQuery and execute a UDF written in JavaScript.

View solution in original post

3 REPLIES 3

In BigQuery, User-Defined Functions (UDFs) can be written in SQL or JavaScript, but not directly in Python. However, you can use Python to interact with BigQuery and execute a UDF written in JavaScript.

thank you.  We've submitted a feature request to also use python to write a udf.

Hello @mdideles do you have updates on the feature request? Thanks