diff --git a/proto/substrait/algebra.proto b/proto/substrait/algebra.proto index 300d03f90..885f1dce4 100644 --- a/proto/substrait/algebra.proto +++ b/proto/substrait/algebra.proto @@ -407,6 +407,7 @@ message SortRel { RelCommon common = 1; Rel input = 2; repeated SortField sorts = 3; + bool preserve_partitioning = 4; substrait.extensions.AdvancedExtension advanced_extension = 10; } diff --git a/site/docs/relations/logical_relations.md b/site/docs/relations/logical_relations.md index d42f523a3..94928f89b 100644 --- a/site/docs/relations/logical_relations.md +++ b/site/docs/relations/logical_relations.md @@ -157,6 +157,7 @@ The sort operator reorders a dataset based on one or more identified sort fields | ----------- | ------------------------------------------------------------ | ----------------------- | | Input | The relational input. | Required | | Sort Fields | List of one or more fields to sort by. Uses the same properties as the [orderedness](basics.md#orderedness) property. | One sort field required | +| Preserve Partitioning | False means global sorting apply for entire data set, True means sorting only apply within the partition. | Optional | === "SortRel Message"