ExamGecko
Question list
Search
Search

Question 57 - DSA-C02 discussion

Report
Export

Which ones are the correct rules while using a data science model created via External function in Snowflake?

A.
External functions return a value. The returned value can be a compound value, such as a VARIANT that contains JSON.
Answers
A.
External functions return a value. The returned value can be a compound value, such as a VARIANT that contains JSON.
B.
External functions can be overloaded.
Answers
B.
External functions can be overloaded.
C.
An external function can appear in any clause of a SQL statement in which other types of UDF can appear.
Answers
C.
An external function can appear in any clause of a SQL statement in which other types of UDF can appear.
D.
External functions can accept Model parameters.
Answers
D.
External functions can accept Model parameters.
Suggested answer: A, B, C, D

Explanation:

From the perspective of a user running a SQL statement, an external function behaves like any other UDF . External functions follow these rules:

External functions return a value.

External functions can accept parameters.

An external function can appear in any clause of a SQL statement in which other types of UDF can appear. For example:

1. select my_external_function_2(column_1, column_2)

2. from table_1;

1. select col1

2. from table_1

3. where my_external_function_3(col2) < 0;

1. create view view1 (col1) as

2. select my_external_function_5(col1)

3. from table9;

An external function can be part of a more complex expression:

1. select upper(zipcode_to_city_external_function(zipcode))

2. from address_table;

The returned value can be a compound value, such as a VARIANT that contains JSON.

External functions can be overloaded; two different functions can have the same name but different signatures (different numbers or data types of input parameters).

asked 23/09/2024
ABDOUL RAZAK TIENDREBEOGO
26 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first