COF-C02 · Question #300
Which languages requite that User-Defined Function (UDF) handlers be written inline? (Select TWO).
The correct answer is B. Javascript E. SQL. In Snowflake UDFs, 'inline' means the handler code is embedded directly within the CREATE FUNCTION statement itself. JavaScript and SQL UDFs only support inline handlers - there is no mechanism to reference an external staged file containing their logic. Java, Scala, and Python…
Question
Which languages requite that User-Defined Function (UDF) handlers be written inline? (Select TWO).
Options
- AJava
- BJavascript
- CScala
- DPython
- ESQL
How the community answered
(55 responses)- A2% (1)
- B93% (51)
- C4% (2)
- D2% (1)
Explanation
In Snowflake UDFs, 'inline' means the handler code is embedded directly within the CREATE FUNCTION statement itself. JavaScript and SQL UDFs only support inline handlers - there is no mechanism to reference an external staged file containing their logic. Java, Scala, and Python UDFs, by contrast, support both inline handlers (code written directly in the CREATE FUNCTION body) and staged handlers (pre-compiled .jar files or .py files uploaded to a Snowflake stage and referenced by the function definition).
Topics
Community Discussion
No community discussion yet for this question.