7

I have been looking into how to write a UDF in BigQuery and found this syntax:

CREATE  { TEMPORARY | TEMP }  FUNCTION
function_name ([named_parameter[, ...]])
[RETURNS data_type]
{ [LANGUAGE language AS """body"""] | [AS (function_definition)] };

In the document I found, there is no clear mention of what languages are supported. In the examples given in the page, it only talks about "js" and I can't find any other language examples so I presume it only supports JavaScript but I am wondering whether anyone knows for sure.

1 Answer 1

6

From that same page:

Supported external UDF languages

External UDFs support code written in JavaScript, which you specify using js as the LANGUAGE.

You can't use languages other than JavaScript.

Sign up to request clarification or add additional context in comments.

2 Comments

Only JS. But also SQL!
..and C/Rust ;-) medium.com/@hoffa/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.