-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(subscription): support cusor order #18801
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4f587bd
support
xxhZs ce95de1
fmt
xxhZs 38e7b6a
add test
xxhZs ffa9dfe
fix test
xxhZs 638775e
Merge branch 'main' into xxh/ex-only-one-cursor
xxhZs f5bd469
save
xxhZs 47d4218
save
xxhZs bd64ded
add merge sort for vnode
xxhZs b15cee9
Merge branch 'main' into xxh/ex-only-one-cursor
xxhZs 45b7b2a
fix comm
xxhZs 8ae58e2
fix comm
xxhZs b96f3e2
Merge branch 'main' into xxh/ex-only-one-cursor
xxhZs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ pub struct BatchLogSeqScan { | |
|
||
impl BatchLogSeqScan { | ||
fn new_inner(core: generic::LogScan, dist: Distribution) -> Self { | ||
let order = Order::any(); | ||
let order = Order::new(core.table_desc.pk.clone()); | ||
let base = PlanBase::new_batch(core.ctx(), core.schema(), dist, order); | ||
|
||
Self { base, core } | ||
|
@@ -88,8 +88,11 @@ impl Distill for BatchLogSeqScan { | |
}); | ||
vec.push(("distribution", dist)); | ||
} | ||
vec.push(("old_epoch", Pretty::from(self.core.old_epoch.to_string()))); | ||
vec.push(("new_epoch", Pretty::from(self.core.new_epoch.to_string()))); | ||
vec.push(("version_id", Pretty::from(self.core.version_id.to_string()))); | ||
|
||
childless_record("BatchScan", vec) | ||
childless_record("BatchLogSeqScan", vec) | ||
} | ||
} | ||
|
||
|
@@ -126,6 +129,8 @@ impl TryToBatchPb for BatchLogSeqScan { | |
}, | ||
)), | ||
}), | ||
// It's currently true. | ||
ordered: true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make this consistent with BatchSeqScan:
|
||
})) | ||
} | ||
} | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the epoch range and version id in the result as well.