You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/sql-reference/functions/udf.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@ A function configuration contains the following settings:
44
44
|`execute_direct`| If `execute_direct` = `1`, then `command` will be searched inside user_scripts folder specified by [user_scripts_path](../../operations/server-configuration-parameters/settings.md#user_scripts_path). Additional script arguments can be specified using whitespace separator. Example: `script_name arg1 arg2`. If `execute_direct` = `0`, `command` is passed as argument for `bin/sh -c`| Optional |`1`|
45
45
|`lifetime`| The reload interval of a function in seconds. If it is set to `0` then the function is not reloaded | Optional |`0`|
46
46
|`deterministic`| If the function is deterministic (returns the same result for the same input) | Optional |`false`|
47
+
|`stderr_reaction`| How to handle the command's stderr output. Values: `none` (ignore), `log` (log all stderr immediately), `log_first` (log first 4 KiB after exit), `log_last` (log last 4 KiB after exit), `throw` (throw exception immediately on any stderr output). When using `log_first` or `log_last` with a non-zero exit code, the stderr content is included in the exception message | Optional |`log_last`|
48
+
|`check_exit_code`| If true, ClickHouse will check the exit code of the command. A non-zero exit code causes an exception | Optional |`true`|
47
49
48
50
The command must read arguments from `STDIN` and must output the result to `STDOUT`. The command must process arguments iteratively. That is after processing a chunk of arguments it must wait for the next chunk.
0 commit comments