File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ def udf(
142
142
name : Optional [str ] = None ,
143
143
args : Optional [ParameterType ] = None ,
144
144
returns : Optional [ReturnType ] = None ,
145
+ timeout : Optional [int ] = None ,
145
146
) -> Callable [..., Any ]:
146
147
"""
147
148
Define a user-defined function (UDF).
@@ -169,6 +170,9 @@ def udf(
169
170
Specifies the return data type of the function. This parameter
170
171
works the same way as `args`. If the function is a table-valued
171
172
function, the return type should be a `Table` object.
173
+ timeout : int, optional
174
+ The timeout in seconds for the UDF execution. If not specified,
175
+ the global default timeout is used.
172
176
173
177
Returns
174
178
-------
@@ -180,4 +184,5 @@ def udf(
180
184
name = name ,
181
185
args = args ,
182
186
returns = returns ,
187
+ timeout = timeout ,
183
188
)
You can’t perform that action at this time.
0 commit comments