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: modules/functions/pages/compute.adoc
+48-48Lines changed: 48 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,19 +36,19 @@ The step name is `compute` and the function's `UserConfig` is controlled in this
36
36
| *Name (field)*
37
37
| *Description*
38
38
39
-
| name
39
+
| name
40
40
| The name of the field to be computed. Prefix with `key.` or `value.` to compute the fields in the key or value parts of the message. +
41
41
You can also compute values on the following message headers: [`destinationTopic`, `messageKey`, `properties.`]. +
42
42
Please note that properties is a map of key/value pairs that are referenced by the dot notation, for example `properties.key0`.
43
43
44
-
| expression
45
-
| Supports the <<Expression language>> syntax. It is evaluated at runtime and the result of the evaluation is assigned to the field.
44
+
| expression
45
+
| Supports the <<Expression language>> syntax. It is evaluated at runtime and the result of the evaluation is assigned to the field.
46
46
47
-
| type
48
-
| The type of the computed field. this will translate to the schema type of the new field in the transformed message. The following types are currently supported [`STRING`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `BOOLEAN`, `DATE`, `TIME`, `DATETIME`]. See <<Type parameters>>.
47
+
| type
48
+
| The type of the computed field. this will translate to the schema type of the new field in the transformed message. The following types are currently supported [`STRING`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `BOOLEAN`, `DATE`, `TIME`, `DATETIME`]. See <<Type parameters>>.
49
49
50
-
| optional (default: true)
51
-
|If true, it marks the field as optional in the schema of the transformed message. This is useful when `null` is a possible value of the compute expression.
50
+
| optional (default: true)
51
+
|If true, it marks the field as optional in the schema of the transformed message. This is useful when `null` is a possible value of the compute expression.
52
52
53
53
|===
54
54
@@ -58,40 +58,40 @@ Please note that properties is a map of key/value pairs that are referenced by t
0 commit comments