Help Center/
MapReduce Service/
Component Operation Guide (LTS) (Ankara Region)/
Using Flink/
Enhancements to Flink SQL/
Using the DISTRIBUTEBY Feature
Updated on 2024-11-29 GMT+08:00
Using the DISTRIBUTEBY Feature
The DISTRIBUTEBY feature is added to Flink SQL to partition data based on specified fields. A single or multiple fields are supported, solving the problem where only data needs to be partitioned. Example:
SELECT /*+ DISTRIBUTEBY('id') */ id, name FROM t1; SELECT /*+ DISTRIBUTEBY('id', 'name') */ id, name FROM t1; SELECT /*+ DISTRIBUTEBY('id1') */ id as id1, name FROM t1;
Parent topic: Enhancements to Flink SQL
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