Help Center>
Data Lake Insight>
Flink SQL Syntax Reference>
Historical Version>
Flink SQL Syntax (This Syntax Will Not Evolve. Use FlinkOpenSource SQL Instead.)>
Creating a Temporary Stream
Updated on 2023-04-27 GMT+08:00
Creating a Temporary Stream
Function
The temporary stream is used to simplify SQL logic. If complex SQL logic is followed, write SQL statements concatenated with temporary streams. The temporary stream is just a logical concept and does not generate any data.
Syntax
1
|
CREATE TEMP STREAM stream_id (attr_name attr_type (',' attr_name attr_type)* ) |
Example
1
|
create temp stream a2(attr1 int, attr2 string); |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot