v.25.4Improvement
Serialize query plan for Distributed queries
Serialize query plan forDistributedqueries. A new settingserialize_query_planis added. When enabled, queries fromDistributedtable will use a serialized query plan for remote query execution. This introduces a new packet type to TCP protocol,<process_query_plan_packet>true</process_query_plan_packet>should be added to the server config to allow processing this packet. #69652 (Nikolai Kochetov).
Why it matters
This feature addresses the need to optimize the execution ofDistributed table queries by sending a serialized query plan to remote servers. This can improve query execution efficiency and consistency across distributed nodes.How to use it
Enable the new settingserialize_query_plan for queries on Distributed tables. Additionally, add <process_query_plan_packet>true</process_query_plan_packet> to the server TCP protocol configuration to allow the server to process the new serialized query plan packets.