Skip to content

Commit

Permalink
[native] Regenerate Presto protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Dec 20, 2024
1 parent 8136f7c commit 74c3c46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<VariableReferenceExpression>",
"partitionBy");
}

void from_json(const json& j, SortNode& p) {
Expand All @@ -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<VariableReferenceExpression>",
"partitionBy");
}
} // namespace facebook::presto::protocol
namespace facebook::presto::protocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,7 @@ struct SortNode : public PlanNode {
std::shared_ptr<PlanNode> source = {};
OrderingScheme orderingScheme = {};
bool isPartial = {};
List<VariableReferenceExpression> partitionBy = {};

SortNode() noexcept;
};
Expand Down

0 comments on commit 74c3c46

Please sign in to comment.