From 74c3c46c361392ba53b18a496694f3b3c34a8c64 Mon Sep 17 00:00:00 2001 From: Andrii Rosa Date: Thu, 5 Dec 2024 07:31:15 -0800 Subject: [PATCH] [native] Regenerate Presto protocol --- .../presto_protocol/core/presto_protocol_core.cpp | 14 ++++++++++++++ .../presto_protocol/core/presto_protocol_core.h | 1 + 2 files changed, 15 insertions(+) diff --git a/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp b/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp index 60b9a0a601e60..3cfabe64627f5 100644 --- a/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp +++ b/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp @@ -8690,6 +8690,13 @@ void to_json(json& j, const SortNode& p) { "OrderingScheme", "orderingScheme"); to_json_key(j, "isPartial", p.isPartial, "SortNode", "bool", "isPartial"); + to_json_key( + j, + "partitionBy", + p.partitionBy, + "SortNode", + "List", + "partitionBy"); } void from_json(const json& j, SortNode& p) { @@ -8704,6 +8711,13 @@ void from_json(const json& j, SortNode& p) { "OrderingScheme", "orderingScheme"); from_json_key(j, "isPartial", p.isPartial, "SortNode", "bool", "isPartial"); + from_json_key( + j, + "partitionBy", + p.partitionBy, + "SortNode", + "List", + "partitionBy"); } } // namespace facebook::presto::protocol namespace facebook::presto::protocol { diff --git a/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.h b/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.h index 902c0c24ce5a0..a50e7da4839e1 100644 --- a/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.h +++ b/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.h @@ -2025,6 +2025,7 @@ struct SortNode : public PlanNode { std::shared_ptr source = {}; OrderingScheme orderingScheme = {}; bool isPartial = {}; + List partitionBy = {}; SortNode() noexcept; };