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
<spanclass="label label-info">Note</span> In Python DataStream API, users can specify the output type information of the transformation explicityly. If not
65
-
specified, the output type will be `Types.PICKLED_BYTE_ARRAY` so that data will be in a form of byte array generated by
66
-
the pickle seriallizer. For more details about the `Pickle Serialization`, please refer to [DataTypes]({{< ref "docs/dev/python/datastream/data_types" >}}#pickle-serialization).
67
-
68
-
## Lambda Function
69
-
As shown in the following example, all the transformations can also accept a lambda function to define the functionality of the transformation:
59
+
### Lambda Function
60
+
As shown in the following example, the transformations can also accept a lambda function to define the functionality of the transformation:
Users could specify the output type information of the transformation explicitly in Python DataStream API. If not
84
+
specified, the output type will be `Types.PICKLED_BYTE_ARRAY` by default, and the result data will be serialized using pickle serializer.
85
+
For more details about the pickle serializer, please refer to [Pickle Serialization]({{< ref "docs/dev/python/datastream/data_types" >}}#pickle-serialization).
86
+
87
+
Generally, the output type needs to be specified in the following scenarios.
88
+
89
+
### Convert DataStream into Table
90
+
91
+
```python
92
+
from pyflink.common.typeinfo import Types
93
+
from pyflink.datastream import StreamExecutionEnvironment
Generally, the output type needs to be specified for the map operation in the above example if the sink only accepts special kinds of data, e.g. Row, etc.
<spanclass="label label-info">Note</span> In Python DataStream API, users can specify the output type information of the transformation explicityly. If not
65
-
specified, the output type will be `Types.PICKLED_BYTE_ARRAY` so that data will be in a form of byte array generated by
66
-
the pickle seriallizer. For more details about the `Pickle Serialization`, please refer to [DataTypes]({{< ref "docs/dev/python/datastream/data_types" >}}#pickle-serialization).
67
-
68
-
## Lambda Function
69
-
As shown in the following example, all the transformations can also accept a lambda function to define the functionality of the transformation:
59
+
### Lambda Function
60
+
As shown in the following example, the transformations can also accept a lambda function to define the functionality of the transformation:
Users could specify the output type information of the transformation explicitly in Python DataStream API. If not
84
+
specified, the output type will be `Types.PICKLED_BYTE_ARRAY` by default, and the result data will be serialized using pickle serializer.
85
+
For more details about the pickle serializer, please refer to [Pickle Serialization]({{< ref "docs/dev/python/datastream/data_types" >}}#pickle-serialization).
86
+
87
+
Generally, the output type needs to be specified in the following scenarios.
88
+
89
+
### Convert DataStream into Table
90
+
91
+
```python
92
+
from pyflink.common.typeinfo import Types
93
+
from pyflink.datastream import StreamExecutionEnvironment
Generally, the output type needs to be specified for the map operation in the above example if the sink only accepts special kinds of data, e.g. Row, etc.
0 commit comments