Skip to content

Commit d79e6c3

Browse files
committed
feat: support with ties in FetchRel
1 parent 4a47244 commit d79e6c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

proto/substrait/algebra.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,17 @@ message FetchRel {
319319
// Recommended type for count is int64.
320320
Expression count_expr = 6;
321321
}
322+
323+
// If specified, returns extra rows if they have the same sort column values
324+
// as the last row specified by `count_mode`.
325+
// The result of the Rel is guaranteed to be in the order of `WithTies.sorts`.
326+
WithTies with_ties = 7;
327+
328+
message WithTies {
329+
// The sort order to consider to evaluate tie.
330+
repeated SortField sorts = 1;
331+
}
332+
322333
substrait.extensions.AdvancedExtension advanced_extension = 10;
323334
}
324335

0 commit comments

Comments
 (0)